mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-03-01 15:33:35 +00:00
Merge branch 'public-single-node' into pmm-6401-read-prometheus-data-files
This commit is contained in:
commit
e5ef3288dd
39 changed files with 555 additions and 445 deletions
|
@ -6,6 +6,12 @@
|
||||||
```
|
```
|
||||||
node_filesystem_files{ host="$host", mountpoint="/" } - node_filesystem_files_free
|
node_filesystem_files{ host="$host", mountpoint="/" } - node_filesystem_files_free
|
||||||
```
|
```
|
||||||
|
* FEATURE: vmagent: add `-promscrape.suppressDuplicateScrapeTargetErrors` command-line flag for suppressing `duplicate scrape target` errors.
|
||||||
|
See https://github.com/VictoriaMetrics/VictoriaMetrics/issues/651 and https://victoriametrics.github.io/vmagent.html#troubleshooting .
|
||||||
|
* FEATURE: vmagent: show original labels before relabeling is applied on `duplicate scrape target` errors. This should simplify debugging for incorrect relabeling.
|
||||||
|
See https://github.com/VictoriaMetrics/VictoriaMetrics/issues/651
|
||||||
|
* FEATURE: vmagent: `/targets` page now accepts optional `show_original_labels=1` query arg for displaying original labels for each target before relabeling is applied.
|
||||||
|
This should simplify debugging for target relabeling configs. See https://github.com/VictoriaMetrics/VictoriaMetrics/issues/651
|
||||||
* FEATURE: add `-finalMergeDelay` command-line flag for configuring the delay before final merge for per-month partitions.
|
* FEATURE: add `-finalMergeDelay` command-line flag for configuring the delay before final merge for per-month partitions.
|
||||||
The final merge is started after no new data is ingested into per-month partition during `-finalMergeDelay`.
|
The final merge is started after no new data is ingested into per-month partition during `-finalMergeDelay`.
|
||||||
|
|
||||||
|
|
|
@ -210,6 +210,8 @@ Use official [Grafana dashboard](https://grafana.com/grafana/dashboards/12683) f
|
||||||
If you have suggestions, improvements or found a bug - feel free to open an issue on github or add review to the dashboard.
|
If you have suggestions, improvements or found a bug - feel free to open an issue on github or add review to the dashboard.
|
||||||
|
|
||||||
`vmagent` also exports target statuses at `http://vmagent-host:8429/targets` page in plaintext format.
|
`vmagent` also exports target statuses at `http://vmagent-host:8429/targets` page in plaintext format.
|
||||||
|
`/targets` handler accepts optional `show_original_labels=1` query arg, which shows the original labels per each target
|
||||||
|
before applying relabeling. This information may be useful for debugging target relabeling.
|
||||||
|
|
||||||
|
|
||||||
### Troubleshooting
|
### Troubleshooting
|
||||||
|
@ -237,7 +239,8 @@ If you have suggestions, improvements or found a bug - feel free to open an issu
|
||||||
Pass `-remoteWrite.showURL` command-line flag when starting `vmagent` in order to see all the valid urls.
|
Pass `-remoteWrite.showURL` command-line flag when starting `vmagent` in order to see all the valid urls.
|
||||||
|
|
||||||
* If you see `skipping duplicate scrape target with identical labels` errors when scraping Kubernetes pods, then it is likely these pods listen multiple ports
|
* If you see `skipping duplicate scrape target with identical labels` errors when scraping Kubernetes pods, then it is likely these pods listen multiple ports
|
||||||
or they use init container.
|
or they use init container. These errors can be either fixed or suppressed with `-promscrape.suppressDuplicateScrapeTargetErrors` command-line flag.
|
||||||
|
See available options below if you prefer fixing the root cause of the error:
|
||||||
|
|
||||||
The following `relabel_configs` section may help determining `__meta_*` labels resulting in duplicate targets:
|
The following `relabel_configs` section may help determining `__meta_*` labels resulting in duplicate targets:
|
||||||
```yml
|
```yml
|
||||||
|
|
|
@ -5,6 +5,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
@ -207,7 +208,8 @@ func requestHandler(w http.ResponseWriter, r *http.Request) bool {
|
||||||
case "/targets":
|
case "/targets":
|
||||||
promscrapeTargetsRequests.Inc()
|
promscrapeTargetsRequests.Inc()
|
||||||
w.Header().Set("Content-Type", "text/plain")
|
w.Header().Set("Content-Type", "text/plain")
|
||||||
promscrape.WriteHumanReadableTargetsStatus(w)
|
showOriginalLabels, _ := strconv.ParseBool(r.FormValue("show_original_labels"))
|
||||||
|
promscrape.WriteHumanReadableTargetsStatus(w, showOriginalLabels)
|
||||||
return true
|
return true
|
||||||
case "/-/reload":
|
case "/-/reload":
|
||||||
promscrapeConfigReloadRequests.Inc()
|
promscrapeConfigReloadRequests.Inc()
|
||||||
|
|
|
@ -31,7 +31,6 @@ var (
|
||||||
// Init creates a Querier from provided flag values.
|
// Init creates a Querier from provided flag values.
|
||||||
func Init() (Querier, error) {
|
func Init() (Querier, error) {
|
||||||
if *addr == "" {
|
if *addr == "" {
|
||||||
flag.PrintDefaults()
|
|
||||||
return nil, fmt.Errorf("datasource.url is empty")
|
return nil, fmt.Errorf("datasource.url is empty")
|
||||||
}
|
}
|
||||||
tr, err := utils.Transport(*addr, *tlsCertFile, *tlsKeyFile, *tlsCAFile, *tlsServerName, *tlsInsecureSkipVerify)
|
tr, err := utils.Transport(*addr, *tlsCertFile, *tlsKeyFile, *tlsCAFile, *tlsServerName, *tlsInsecureSkipVerify)
|
||||||
|
|
|
@ -26,7 +26,6 @@ var (
|
||||||
// Init creates a Notifier object based on provided flags.
|
// Init creates a Notifier object based on provided flags.
|
||||||
func Init(gen AlertURLGenerator) ([]Notifier, error) {
|
func Init(gen AlertURLGenerator) ([]Notifier, error) {
|
||||||
if len(*addrs) == 0 {
|
if len(*addrs) == 0 {
|
||||||
flag.PrintDefaults()
|
|
||||||
return nil, fmt.Errorf("at least one `-notifier.url` must be set")
|
return nil, fmt.Errorf("at least one `-notifier.url` must be set")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,7 @@ import (
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
|
|
||||||
|
@ -155,7 +156,8 @@ func RequestHandler(w http.ResponseWriter, r *http.Request) bool {
|
||||||
case "/targets":
|
case "/targets":
|
||||||
promscrapeTargetsRequests.Inc()
|
promscrapeTargetsRequests.Inc()
|
||||||
w.Header().Set("Content-Type", "text/plain")
|
w.Header().Set("Content-Type", "text/plain")
|
||||||
promscrape.WriteHumanReadableTargetsStatus(w)
|
showOriginalLabels, _ := strconv.ParseBool(r.FormValue("show_original_labels"))
|
||||||
|
promscrape.WriteHumanReadableTargetsStatus(w, showOriginalLabels)
|
||||||
return true
|
return true
|
||||||
case "/-/reload":
|
case "/-/reload":
|
||||||
promscrapeConfigReloadRequests.Inc()
|
promscrapeConfigReloadRequests.Inc()
|
||||||
|
|
|
@ -210,6 +210,8 @@ Use official [Grafana dashboard](https://grafana.com/grafana/dashboards/12683) f
|
||||||
If you have suggestions, improvements or found a bug - feel free to open an issue on github or add review to the dashboard.
|
If you have suggestions, improvements or found a bug - feel free to open an issue on github or add review to the dashboard.
|
||||||
|
|
||||||
`vmagent` also exports target statuses at `http://vmagent-host:8429/targets` page in plaintext format.
|
`vmagent` also exports target statuses at `http://vmagent-host:8429/targets` page in plaintext format.
|
||||||
|
`/targets` handler accepts optional `show_original_labels=1` query arg, which shows the original labels per each target
|
||||||
|
before applying relabeling. This information may be useful for debugging target relabeling.
|
||||||
|
|
||||||
|
|
||||||
### Troubleshooting
|
### Troubleshooting
|
||||||
|
@ -237,7 +239,8 @@ If you have suggestions, improvements or found a bug - feel free to open an issu
|
||||||
Pass `-remoteWrite.showURL` command-line flag when starting `vmagent` in order to see all the valid urls.
|
Pass `-remoteWrite.showURL` command-line flag when starting `vmagent` in order to see all the valid urls.
|
||||||
|
|
||||||
* If you see `skipping duplicate scrape target with identical labels` errors when scraping Kubernetes pods, then it is likely these pods listen multiple ports
|
* If you see `skipping duplicate scrape target with identical labels` errors when scraping Kubernetes pods, then it is likely these pods listen multiple ports
|
||||||
or they use init container.
|
or they use init container. These errors can be either fixed or suppressed with `-promscrape.suppressDuplicateScrapeTargetErrors` command-line flag.
|
||||||
|
See available options below if you prefer fixing the root cause of the error:
|
||||||
|
|
||||||
The following `relabel_configs` section may help determining `__meta_*` labels resulting in duplicate targets:
|
The following `relabel_configs` section may help determining `__meta_*` labels resulting in duplicate targets:
|
||||||
```yml
|
```yml
|
||||||
|
|
15
go.mod
15
go.mod
|
@ -9,8 +9,8 @@ require (
|
||||||
// like https://github.com/valyala/fasthttp/commit/996610f021ff45fdc98c2ce7884d5fa4e7f9199b
|
// like https://github.com/valyala/fasthttp/commit/996610f021ff45fdc98c2ce7884d5fa4e7f9199b
|
||||||
github.com/VictoriaMetrics/fasthttp v1.0.7
|
github.com/VictoriaMetrics/fasthttp v1.0.7
|
||||||
github.com/VictoriaMetrics/metrics v1.12.3
|
github.com/VictoriaMetrics/metrics v1.12.3
|
||||||
github.com/VictoriaMetrics/metricsql v0.7.0
|
github.com/VictoriaMetrics/metricsql v0.7.1
|
||||||
github.com/aws/aws-sdk-go v1.35.3
|
github.com/aws/aws-sdk-go v1.35.5
|
||||||
github.com/cespare/xxhash/v2 v2.1.1
|
github.com/cespare/xxhash/v2 v2.1.1
|
||||||
github.com/go-kit/kit v0.10.0
|
github.com/go-kit/kit v0.10.0
|
||||||
github.com/golang/snappy v0.0.2
|
github.com/golang/snappy v0.0.2
|
||||||
|
@ -24,14 +24,15 @@ require (
|
||||||
github.com/valyala/gozstd v1.8.3
|
github.com/valyala/gozstd v1.8.3
|
||||||
github.com/valyala/histogram v1.1.2
|
github.com/valyala/histogram v1.1.2
|
||||||
github.com/valyala/quicktemplate v1.6.3
|
github.com/valyala/quicktemplate v1.6.3
|
||||||
|
go.opencensus.io v0.22.5 // indirect
|
||||||
go.uber.org/atomic v1.7.0 // indirect
|
go.uber.org/atomic v1.7.0 // indirect
|
||||||
golang.org/x/net v0.0.0-20201002202402-0a1ea396d57c // indirect
|
golang.org/x/net v0.0.0-20201006153459-a7d1128ccaa0 // indirect
|
||||||
golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43
|
golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43
|
||||||
golang.org/x/sync v0.0.0-20200930132711-30421366ff76 // indirect
|
golang.org/x/sync v0.0.0-20201008141435-b3e1573b7520 // indirect
|
||||||
golang.org/x/sys v0.0.0-20201005172224-997123666555
|
golang.org/x/sys v0.0.0-20201008064518-c1f3e3309c71
|
||||||
golang.org/x/tools v0.0.0-20201005185003-576e169c3de7 // indirect
|
golang.org/x/tools v0.0.0-20201008025239-9df69603baec // indirect
|
||||||
google.golang.org/api v0.32.0
|
google.golang.org/api v0.32.0
|
||||||
google.golang.org/genproto v0.0.0-20201006033701-bcad7cf615f2 // indirect
|
google.golang.org/genproto v0.0.0-20201008135153-289734e2e40c // indirect
|
||||||
gopkg.in/yaml.v2 v2.3.0
|
gopkg.in/yaml.v2 v2.3.0
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
30
go.sum
30
go.sum
|
@ -83,8 +83,8 @@ github.com/VictoriaMetrics/fasthttp v1.0.7/go.mod h1:eaGv8oDDOWE8JQa6GgBgpCwjJhR
|
||||||
github.com/VictoriaMetrics/metrics v1.12.2/go.mod h1:Z1tSfPfngDn12bTfZSCqArT3OPY3u88J12hSoOhuiRE=
|
github.com/VictoriaMetrics/metrics v1.12.2/go.mod h1:Z1tSfPfngDn12bTfZSCqArT3OPY3u88J12hSoOhuiRE=
|
||||||
github.com/VictoriaMetrics/metrics v1.12.3 h1:Fe6JHC6MSEKa+BtLhPN8WIvS+HKPzMc2evEpNeCGy7I=
|
github.com/VictoriaMetrics/metrics v1.12.3 h1:Fe6JHC6MSEKa+BtLhPN8WIvS+HKPzMc2evEpNeCGy7I=
|
||||||
github.com/VictoriaMetrics/metrics v1.12.3/go.mod h1:Z1tSfPfngDn12bTfZSCqArT3OPY3u88J12hSoOhuiRE=
|
github.com/VictoriaMetrics/metrics v1.12.3/go.mod h1:Z1tSfPfngDn12bTfZSCqArT3OPY3u88J12hSoOhuiRE=
|
||||||
github.com/VictoriaMetrics/metricsql v0.7.0 h1:YR/OvbsCH0dwUuc3r5GayTcuTdgWHJZo+4bqbaGl7WM=
|
github.com/VictoriaMetrics/metricsql v0.7.1 h1:2V7EbbfKkU2pDzs+D/S0IKYvNSQzDYBlbS8afXD7ntE=
|
||||||
github.com/VictoriaMetrics/metricsql v0.7.0/go.mod h1:ylO7YITho/Iw6P71oEaGyHbO94bGoGtzWfLGqFhMIg8=
|
github.com/VictoriaMetrics/metricsql v0.7.1/go.mod h1:ylO7YITho/Iw6P71oEaGyHbO94bGoGtzWfLGqFhMIg8=
|
||||||
github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g=
|
github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g=
|
||||||
github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c=
|
github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c=
|
||||||
github.com/agnivade/levenshtein v1.0.1/go.mod h1:CURSv5d9Uaml+FovSIICkLbAUZ9S4RqaHDIsdSBg7lM=
|
github.com/agnivade/levenshtein v1.0.1/go.mod h1:CURSv5d9Uaml+FovSIICkLbAUZ9S4RqaHDIsdSBg7lM=
|
||||||
|
@ -114,8 +114,8 @@ github.com/asaskevich/govalidator v0.0.0-20200108200545-475eaeb16496/go.mod h1:o
|
||||||
github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU=
|
github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU=
|
||||||
github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo=
|
github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo=
|
||||||
github.com/aws/aws-sdk-go v1.34.9/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0=
|
github.com/aws/aws-sdk-go v1.34.9/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0=
|
||||||
github.com/aws/aws-sdk-go v1.35.3 h1:r0puXncSaAfRt7Btml2swUo74Kao+vKhO3VLjwDjK54=
|
github.com/aws/aws-sdk-go v1.35.5 h1:doSEOxC0UkirPcle20Rc+1kAhJ4Ip+GSEeZ3nKl7Qlk=
|
||||||
github.com/aws/aws-sdk-go v1.35.3/go.mod h1:H7NKnBqNVzoTJpGfLrQkkD+ytBA93eiDYi/+8rV9s48=
|
github.com/aws/aws-sdk-go v1.35.5/go.mod h1:tlPOdRjfxPBpNIwqDj61rmsnA85v9jc0Ps9+muhnW+k=
|
||||||
github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g=
|
github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g=
|
||||||
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
|
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
|
||||||
github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
|
github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
|
||||||
|
@ -723,6 +723,8 @@ go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
|
||||||
go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
|
go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
|
||||||
go.opencensus.io v0.22.4 h1:LYy1Hy3MJdrCdMwwzxA/dRok4ejH+RwNGbuoD9fCjto=
|
go.opencensus.io v0.22.4 h1:LYy1Hy3MJdrCdMwwzxA/dRok4ejH+RwNGbuoD9fCjto=
|
||||||
go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
|
go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
|
||||||
|
go.opencensus.io v0.22.5 h1:dntmOdLpSpHlVqbW5Eay97DelsZHe+55D+xC6i0dDS0=
|
||||||
|
go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk=
|
||||||
go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
|
go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
|
||||||
go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=
|
go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=
|
||||||
go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=
|
go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=
|
||||||
|
@ -834,8 +836,8 @@ golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81R
|
||||||
golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
||||||
golang.org/x/net v0.0.0-20200904194848-62affa334b73/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
golang.org/x/net v0.0.0-20200904194848-62affa334b73/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
||||||
golang.org/x/net v0.0.0-20200927032502-5d4f70055728/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
golang.org/x/net v0.0.0-20200927032502-5d4f70055728/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
||||||
golang.org/x/net v0.0.0-20201002202402-0a1ea396d57c h1:dk0ukUIHmGHqASjP0iue2261isepFCC6XRCSd1nHgDw=
|
golang.org/x/net v0.0.0-20201006153459-a7d1128ccaa0 h1:wBouT66WTYFXdxfVdz9sVWARVd/2vfGcmI45D2gj45M=
|
||||||
golang.org/x/net v0.0.0-20201002202402-0a1ea396d57c/go.mod h1:iQL9McJNjoIa5mjH6nYTCTZXUN6RP+XW3eib7Ya3XcI=
|
golang.org/x/net v0.0.0-20201006153459-a7d1128ccaa0/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
|
||||||
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
||||||
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
||||||
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
||||||
|
@ -852,8 +854,8 @@ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJ
|
||||||
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
golang.org/x/sync v0.0.0-20200930132711-30421366ff76 h1:JnxiSYT3Nm0BT2a8CyvYyM6cnrWpidecD1UuSYbhKm0=
|
golang.org/x/sync v0.0.0-20201008141435-b3e1573b7520 h1:Bx6FllMpG4NWDOfhMBz1VR2QYNp/SAOHPIAsaVmxfPo=
|
||||||
golang.org/x/sync v0.0.0-20200930132711-30421366ff76/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
golang.org/x/sync v0.0.0-20201008141435-b3e1573b7520/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
golang.org/x/sys v0.0.0-20170830134202-bb24a47a89ea/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
golang.org/x/sys v0.0.0-20170830134202-bb24a47a89ea/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
|
@ -915,8 +917,8 @@ golang.org/x/sys v0.0.0-20200821140526-fda516888d29/go.mod h1:h1NjWce9XRLGQEsW7w
|
||||||
golang.org/x/sys v0.0.0-20200828194041-157a740278f4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20200828194041-157a740278f4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20201005172224-997123666555 h1:fihtqzYxy4E31W1yUlyRGveTZT1JIP0bmKaDZ2ceKAw=
|
golang.org/x/sys v0.0.0-20201008064518-c1f3e3309c71 h1:ZPX6UakxrJCxWiyGWpXtFY+fp86Esy7xJT/jJCG8bgU=
|
||||||
golang.org/x/sys v0.0.0-20201005172224-997123666555/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20201008064518-c1f3e3309c71/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/text v0.0.0-20160726164857-2910a502d2bf/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
golang.org/x/text v0.0.0-20160726164857-2910a502d2bf/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||||
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||||
|
@ -998,8 +1000,8 @@ golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82u
|
||||||
golang.org/x/tools v0.0.0-20200915173823-2db8f0ff891c/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU=
|
golang.org/x/tools v0.0.0-20200915173823-2db8f0ff891c/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU=
|
||||||
golang.org/x/tools v0.0.0-20200918232735-d647fc253266/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU=
|
golang.org/x/tools v0.0.0-20200918232735-d647fc253266/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU=
|
||||||
golang.org/x/tools v0.0.0-20201002184944-ecd9fd270d5d/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU=
|
golang.org/x/tools v0.0.0-20201002184944-ecd9fd270d5d/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU=
|
||||||
golang.org/x/tools v0.0.0-20201005185003-576e169c3de7 h1:YTAUHYgZh/ZOA35/OrjTDmFFKb6ddkBL1Zgtl9r8Di8=
|
golang.org/x/tools v0.0.0-20201008025239-9df69603baec h1:RY2OghEV/7X1MLaecgm1mwFd3sGvUddm5pGVSxQvX0c=
|
||||||
golang.org/x/tools v0.0.0-20201005185003-576e169c3de7/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU=
|
golang.org/x/tools v0.0.0-20201008025239-9df69603baec/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU=
|
||||||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||||
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||||
|
@ -1078,8 +1080,8 @@ google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6D
|
||||||
google.golang.org/genproto v0.0.0-20200914193844-75d14daec038/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
google.golang.org/genproto v0.0.0-20200914193844-75d14daec038/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||||
google.golang.org/genproto v0.0.0-20200921151605-7abf4a1a14d5/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
google.golang.org/genproto v0.0.0-20200921151605-7abf4a1a14d5/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||||
google.golang.org/genproto v0.0.0-20201002142447-3860012362da/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
google.golang.org/genproto v0.0.0-20201002142447-3860012362da/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||||
google.golang.org/genproto v0.0.0-20201006033701-bcad7cf615f2 h1:rBG1miiV00OG3NTbgxg42kPWohjVNn1sGhJyt4xyPLQ=
|
google.golang.org/genproto v0.0.0-20201008135153-289734e2e40c h1:dvSnJCVti7yKNAZrunMpEE4QLfy5b/UdEKt+UH39BW4=
|
||||||
google.golang.org/genproto v0.0.0-20201006033701-bcad7cf615f2/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
google.golang.org/genproto v0.0.0-20201008135153-289734e2e40c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||||
google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs=
|
google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs=
|
||||||
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
|
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
|
||||||
google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM=
|
google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM=
|
||||||
|
|
|
@ -71,45 +71,47 @@ func runBackup(src *fslocal.FS, dst common.RemoteFS, origin common.OriginFS, con
|
||||||
|
|
||||||
logger.Infof("starting backup from %s to %s using origin %s", src, dst, origin)
|
logger.Infof("starting backup from %s to %s using origin %s", src, dst, origin)
|
||||||
|
|
||||||
logger.Infof("obtaining list of parts at %s", src)
|
|
||||||
srcParts, err := src.ListParts()
|
srcParts, err := src.ListParts()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("cannot list src parts: %w", err)
|
return fmt.Errorf("cannot list src parts: %w", err)
|
||||||
}
|
}
|
||||||
logger.Infof("obtaining list of parts at %s", dst)
|
logger.Infof("obtained %d parts from src %s", len(srcParts), src)
|
||||||
|
|
||||||
dstParts, err := dst.ListParts()
|
dstParts, err := dst.ListParts()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("cannot list dst parts: %w", err)
|
return fmt.Errorf("cannot list dst parts: %w", err)
|
||||||
}
|
}
|
||||||
logger.Infof("obtaining list of parts at %s", origin)
|
logger.Infof("obtained %d parts from dst %s", len(dstParts), dst)
|
||||||
|
|
||||||
originParts, err := origin.ListParts()
|
originParts, err := origin.ListParts()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("cannot list origin parts: %w", err)
|
return fmt.Errorf("cannot list origin parts: %w", err)
|
||||||
}
|
}
|
||||||
|
logger.Infof("obtained %d parts from origin %s", len(originParts), origin)
|
||||||
|
|
||||||
backupSize := getPartsSize(srcParts)
|
backupSize := getPartsSize(srcParts)
|
||||||
|
|
||||||
partsToDelete := common.PartsDifference(dstParts, srcParts)
|
partsToDelete := common.PartsDifference(dstParts, srcParts)
|
||||||
deleteSize := getPartsSize(partsToDelete)
|
deleteSize := getPartsSize(partsToDelete)
|
||||||
if len(partsToDelete) > 0 {
|
if len(partsToDelete) > 0 {
|
||||||
logger.Infof("deleting %d parts from %s", len(partsToDelete), dst)
|
logger.Infof("deleting %d parts from dst %s", len(partsToDelete), dst)
|
||||||
deletedParts := uint64(0)
|
deletedParts := uint64(0)
|
||||||
err = runParallel(concurrency, partsToDelete, func(p common.Part) error {
|
err = runParallel(concurrency, partsToDelete, func(p common.Part) error {
|
||||||
logger.Infof("deleting %s from %s", &p, dst)
|
logger.Infof("deleting %s from dst %s", &p, dst)
|
||||||
if err := dst.DeletePart(p); err != nil {
|
if err := dst.DeletePart(p); err != nil {
|
||||||
return fmt.Errorf("cannot delete %s from %s: %w", &p, dst, err)
|
return fmt.Errorf("cannot delete %s from dst %s: %w", &p, dst, err)
|
||||||
}
|
}
|
||||||
atomic.AddUint64(&deletedParts, 1)
|
atomic.AddUint64(&deletedParts, 1)
|
||||||
return nil
|
return nil
|
||||||
}, func(elapsed time.Duration) {
|
}, func(elapsed time.Duration) {
|
||||||
n := atomic.LoadUint64(&deletedParts)
|
n := atomic.LoadUint64(&deletedParts)
|
||||||
logger.Infof("deleted %d out of %d parts from %s in %s", n, len(partsToDelete), dst, elapsed)
|
logger.Infof("deleted %d out of %d parts from dst %s in %s", n, len(partsToDelete), dst, elapsed)
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := dst.RemoveEmptyDirs(); err != nil {
|
if err := dst.RemoveEmptyDirs(); err != nil {
|
||||||
return fmt.Errorf("cannot remove empty directories at %s: %w", dst, err)
|
return fmt.Errorf("cannot remove empty directories at dst %s: %w", dst, err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -117,18 +119,18 @@ func runBackup(src *fslocal.FS, dst common.RemoteFS, origin common.OriginFS, con
|
||||||
originCopyParts := common.PartsIntersect(originParts, partsToCopy)
|
originCopyParts := common.PartsIntersect(originParts, partsToCopy)
|
||||||
copySize := getPartsSize(originCopyParts)
|
copySize := getPartsSize(originCopyParts)
|
||||||
if len(originCopyParts) > 0 {
|
if len(originCopyParts) > 0 {
|
||||||
logger.Infof("server-side copying %d parts from %s to %s", len(originCopyParts), origin, dst)
|
logger.Infof("server-side copying %d parts from origin %s to dst %s", len(originCopyParts), origin, dst)
|
||||||
copiedParts := uint64(0)
|
copiedParts := uint64(0)
|
||||||
err = runParallel(concurrency, originCopyParts, func(p common.Part) error {
|
err = runParallel(concurrency, originCopyParts, func(p common.Part) error {
|
||||||
logger.Infof("server-side copying %s from %s to %s", &p, origin, dst)
|
logger.Infof("server-side copying %s from origin %s to dst %s", &p, origin, dst)
|
||||||
if err := dst.CopyPart(origin, p); err != nil {
|
if err := dst.CopyPart(origin, p); err != nil {
|
||||||
return fmt.Errorf("cannot copy %s from %s to %s: %w", &p, origin, dst, err)
|
return fmt.Errorf("cannot copy %s from origin %s to dst %s: %w", &p, origin, dst, err)
|
||||||
}
|
}
|
||||||
atomic.AddUint64(&copiedParts, 1)
|
atomic.AddUint64(&copiedParts, 1)
|
||||||
return nil
|
return nil
|
||||||
}, func(elapsed time.Duration) {
|
}, func(elapsed time.Duration) {
|
||||||
n := atomic.LoadUint64(&copiedParts)
|
n := atomic.LoadUint64(&copiedParts)
|
||||||
logger.Infof("server-side copied %d out of %d parts from %s to %s in %s", n, len(originCopyParts), origin, dst, elapsed)
|
logger.Infof("server-side copied %d out of %d parts from origin %s to dst %s in %s", n, len(originCopyParts), origin, dst, elapsed)
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
@ -138,36 +140,36 @@ func runBackup(src *fslocal.FS, dst common.RemoteFS, origin common.OriginFS, con
|
||||||
srcCopyParts := common.PartsDifference(partsToCopy, originParts)
|
srcCopyParts := common.PartsDifference(partsToCopy, originParts)
|
||||||
uploadSize := getPartsSize(srcCopyParts)
|
uploadSize := getPartsSize(srcCopyParts)
|
||||||
if len(srcCopyParts) > 0 {
|
if len(srcCopyParts) > 0 {
|
||||||
logger.Infof("uploading %d parts from %s to %s", len(srcCopyParts), src, dst)
|
logger.Infof("uploading %d parts from src %s to dst %s", len(srcCopyParts), src, dst)
|
||||||
bytesUploaded := uint64(0)
|
bytesUploaded := uint64(0)
|
||||||
err = runParallel(concurrency, srcCopyParts, func(p common.Part) error {
|
err = runParallel(concurrency, srcCopyParts, func(p common.Part) error {
|
||||||
logger.Infof("uploading %s from %s to %s", &p, src, dst)
|
logger.Infof("uploading %s from src %s to dst %s", &p, src, dst)
|
||||||
rc, err := src.NewReadCloser(p)
|
rc, err := src.NewReadCloser(p)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("cannot create reader for %s from %s: %w", &p, src, err)
|
return fmt.Errorf("cannot create reader for %s from src %s: %w", &p, src, err)
|
||||||
}
|
}
|
||||||
sr := &statReader{
|
sr := &statReader{
|
||||||
r: rc,
|
r: rc,
|
||||||
bytesRead: &bytesUploaded,
|
bytesRead: &bytesUploaded,
|
||||||
}
|
}
|
||||||
if err := dst.UploadPart(p, sr); err != nil {
|
if err := dst.UploadPart(p, sr); err != nil {
|
||||||
return fmt.Errorf("cannot upload %s to %s: %w", &p, dst, err)
|
return fmt.Errorf("cannot upload %s to dst %s: %w", &p, dst, err)
|
||||||
}
|
}
|
||||||
if err = rc.Close(); err != nil {
|
if err = rc.Close(); err != nil {
|
||||||
return fmt.Errorf("cannot close reader for %s from %s: %w", &p, src, err)
|
return fmt.Errorf("cannot close reader for %s from src %s: %w", &p, src, err)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}, func(elapsed time.Duration) {
|
}, func(elapsed time.Duration) {
|
||||||
n := atomic.LoadUint64(&bytesUploaded)
|
n := atomic.LoadUint64(&bytesUploaded)
|
||||||
logger.Infof("uploaded %d out of %d bytes from %s to %s in %s", n, uploadSize, src, dst, elapsed)
|
logger.Infof("uploaded %d out of %d bytes from src %s to dst %s in %s", n, uploadSize, src, dst, elapsed)
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.Infof("backed up %d bytes in %.3f seconds; deleted %d bytes; server-side copied %d bytes; uploaded %d bytes",
|
logger.Infof("backup from src %s to dst %s with origin %s is complete; backed up %d bytes in %.3f seconds; deleted %d bytes; server-side copied %d bytes; uploaded %d bytes",
|
||||||
backupSize, time.Since(startTime).Seconds(), deleteSize, copySize, uploadSize)
|
src, dst, origin, backupSize, time.Since(startTime).Seconds(), deleteSize, copySize, uploadSize)
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -597,6 +597,8 @@ func (stc *StaticConfig) appendScrapeWork(dst []ScrapeWork, swc *scrapeWorkConfi
|
||||||
|
|
||||||
func appendScrapeWork(dst []ScrapeWork, swc *scrapeWorkConfig, target string, extraLabels, metaLabels map[string]string) ([]ScrapeWork, error) {
|
func appendScrapeWork(dst []ScrapeWork, swc *scrapeWorkConfig, target string, extraLabels, metaLabels map[string]string) ([]ScrapeWork, error) {
|
||||||
labels := mergeLabels(swc.jobName, swc.scheme, target, swc.metricsPath, extraLabels, swc.externalLabels, metaLabels, swc.params)
|
labels := mergeLabels(swc.jobName, swc.scheme, target, swc.metricsPath, extraLabels, swc.externalLabels, metaLabels, swc.params)
|
||||||
|
originalLabels := append([]prompbmarshal.Label{}, labels...)
|
||||||
|
promrelabel.SortLabels(originalLabels)
|
||||||
labels = promrelabel.ApplyRelabelConfigs(labels, 0, swc.relabelConfigs, false)
|
labels = promrelabel.ApplyRelabelConfigs(labels, 0, swc.relabelConfigs, false)
|
||||||
labels = promrelabel.RemoveMetaLabels(labels[:0], labels)
|
labels = promrelabel.RemoveMetaLabels(labels[:0], labels)
|
||||||
if len(labels) == 0 {
|
if len(labels) == 0 {
|
||||||
|
@ -648,6 +650,7 @@ func appendScrapeWork(dst []ScrapeWork, swc *scrapeWorkConfig, target string, ex
|
||||||
ScrapeTimeout: swc.scrapeTimeout,
|
ScrapeTimeout: swc.scrapeTimeout,
|
||||||
HonorLabels: swc.honorLabels,
|
HonorLabels: swc.honorLabels,
|
||||||
HonorTimestamps: swc.honorTimestamps,
|
HonorTimestamps: swc.honorTimestamps,
|
||||||
|
OriginalLabels: originalLabels,
|
||||||
Labels: labels,
|
Labels: labels,
|
||||||
AuthConfig: swc.authConfig,
|
AuthConfig: swc.authConfig,
|
||||||
MetricRelabelConfigs: swc.metricRelabelConfigs,
|
MetricRelabelConfigs: swc.metricRelabelConfigs,
|
||||||
|
|
|
@ -38,6 +38,9 @@ var (
|
||||||
"See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#gce_sd_config for details")
|
"See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#gce_sd_config for details")
|
||||||
promscrapeConfigFile = flag.String("promscrape.config", "", "Optional path to Prometheus config file with 'scrape_configs' section containing targets to scrape. "+
|
promscrapeConfigFile = flag.String("promscrape.config", "", "Optional path to Prometheus config file with 'scrape_configs' section containing targets to scrape. "+
|
||||||
"See https://victoriametrics.github.io/#how-to-scrape-prometheus-exporters-such-as-node-exporter for details")
|
"See https://victoriametrics.github.io/#how-to-scrape-prometheus-exporters-such-as-node-exporter for details")
|
||||||
|
|
||||||
|
suppressDuplicateScrapeTargetErrors = flag.Bool("promscrape.suppressDuplicateScrapeTargetErrors", false, "Whether to suppress `duplicate scrape target` errors; "+
|
||||||
|
"see https://victoriametrics.github.io/vmagent.html#troubleshooting for details")
|
||||||
)
|
)
|
||||||
|
|
||||||
// CheckConfig checks -promscrape.config for errors and unsupported options.
|
// CheckConfig checks -promscrape.config for errors and unsupported options.
|
||||||
|
@ -265,18 +268,22 @@ func (sg *scraperGroup) update(sws []ScrapeWork) {
|
||||||
|
|
||||||
additionsCount := 0
|
additionsCount := 0
|
||||||
deletionsCount := 0
|
deletionsCount := 0
|
||||||
swsMap := make(map[string]bool, len(sws))
|
swsMap := make(map[string][]prompbmarshal.Label, len(sws))
|
||||||
for i := range sws {
|
for i := range sws {
|
||||||
sw := &sws[i]
|
sw := &sws[i]
|
||||||
key := sw.key()
|
key := sw.key()
|
||||||
if swsMap[key] {
|
originalLabels := swsMap[key]
|
||||||
logger.Errorf("skipping duplicate scrape target with identical labels; endpoint=%s, labels=%s; "+
|
if originalLabels != nil {
|
||||||
"make sure service discovery and relabeling is set up properly; "+
|
if !*suppressDuplicateScrapeTargetErrors {
|
||||||
"see also https://victoriametrics.github.io/vmagent.html#troubleshooting",
|
logger.Errorf("skipping duplicate scrape target with identical labels; endpoint=%s, labels=%s; "+
|
||||||
sw.ScrapeURL, sw.LabelsString())
|
"make sure service discovery and relabeling is set up properly; "+
|
||||||
|
"see also https://victoriametrics.github.io/vmagent.html#troubleshooting; "+
|
||||||
|
"original labels for target1: %s; original labels for target2: %s",
|
||||||
|
sw.ScrapeURL, sw.LabelsString(), promLabelsString(originalLabels), promLabelsString(sw.OriginalLabels))
|
||||||
|
}
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
swsMap[key] = true
|
swsMap[key] = sw.OriginalLabels
|
||||||
if sg.m[key] != nil {
|
if sg.m[key] != nil {
|
||||||
// The scraper for the given key already exists.
|
// The scraper for the given key already exists.
|
||||||
continue
|
continue
|
||||||
|
@ -297,7 +304,7 @@ func (sg *scraperGroup) update(sws []ScrapeWork) {
|
||||||
|
|
||||||
// Stop deleted scrapers, which are missing in sws.
|
// Stop deleted scrapers, which are missing in sws.
|
||||||
for key, sc := range sg.m {
|
for key, sc := range sg.m {
|
||||||
if !swsMap[key] {
|
if swsMap[key] == nil {
|
||||||
close(sc.stopCh)
|
close(sc.stopCh)
|
||||||
delete(sg.m, key)
|
delete(sg.m, key)
|
||||||
deletionsCount++
|
deletionsCount++
|
||||||
|
|
|
@ -47,6 +47,11 @@ type ScrapeWork struct {
|
||||||
// See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config
|
// See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config
|
||||||
HonorTimestamps bool
|
HonorTimestamps bool
|
||||||
|
|
||||||
|
// OriginalLabels contains original labels before relabeling.
|
||||||
|
//
|
||||||
|
// These labels are needed for relabeling troubleshooting at /targets page.
|
||||||
|
OriginalLabels []prompbmarshal.Label
|
||||||
|
|
||||||
// Labels to add to the scraped metrics.
|
// Labels to add to the scraped metrics.
|
||||||
//
|
//
|
||||||
// The list contains at least the following labels according to https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config
|
// The list contains at least the following labels according to https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config
|
||||||
|
@ -85,6 +90,7 @@ type ScrapeWork struct {
|
||||||
//
|
//
|
||||||
// it can be used for comparing for equality two ScrapeWork objects.
|
// it can be used for comparing for equality two ScrapeWork objects.
|
||||||
func (sw *ScrapeWork) key() string {
|
func (sw *ScrapeWork) key() string {
|
||||||
|
// Do not take into account OriginalLabels.
|
||||||
key := fmt.Sprintf("ScrapeURL=%s, ScrapeInterval=%s, ScrapeTimeout=%s, HonorLabels=%v, HonorTimestamps=%v, Labels=%s, "+
|
key := fmt.Sprintf("ScrapeURL=%s, ScrapeInterval=%s, ScrapeTimeout=%s, HonorLabels=%v, HonorTimestamps=%v, Labels=%s, "+
|
||||||
"AuthConfig=%s, MetricRelabelConfigs=%s, SampleLimit=%d, DisableCompression=%v, DisableKeepAlive=%v",
|
"AuthConfig=%s, MetricRelabelConfigs=%s, SampleLimit=%d, DisableCompression=%v, DisableKeepAlive=%v",
|
||||||
sw.ScrapeURL, sw.ScrapeInterval, sw.ScrapeTimeout, sw.HonorLabels, sw.HonorTimestamps, sw.LabelsString(),
|
sw.ScrapeURL, sw.ScrapeInterval, sw.ScrapeTimeout, sw.HonorLabels, sw.HonorTimestamps, sw.LabelsString(),
|
||||||
|
@ -107,11 +113,16 @@ func (sw *ScrapeWork) Job() string {
|
||||||
|
|
||||||
// LabelsString returns labels in Prometheus format for the given sw.
|
// LabelsString returns labels in Prometheus format for the given sw.
|
||||||
func (sw *ScrapeWork) LabelsString() string {
|
func (sw *ScrapeWork) LabelsString() string {
|
||||||
labels := make([]string, 0, len(sw.Labels))
|
labelsFinalized := promrelabel.FinalizeLabels(nil, sw.Labels)
|
||||||
for _, label := range promrelabel.FinalizeLabels(nil, sw.Labels) {
|
return promLabelsString(labelsFinalized)
|
||||||
labels = append(labels, fmt.Sprintf("%s=%q", label.Name, label.Value))
|
}
|
||||||
|
|
||||||
|
func promLabelsString(labels []prompbmarshal.Label) string {
|
||||||
|
a := make([]string, 0, len(labels))
|
||||||
|
for _, label := range labels {
|
||||||
|
a = append(a, fmt.Sprintf("%s=%q", label.Name, label.Value))
|
||||||
}
|
}
|
||||||
return "{" + strings.Join(labels, ", ") + "}"
|
return "{" + strings.Join(a, ", ") + "}"
|
||||||
}
|
}
|
||||||
|
|
||||||
type scrapeWork struct {
|
type scrapeWork struct {
|
||||||
|
|
|
@ -11,8 +11,8 @@ import (
|
||||||
var tsmGlobal = newTargetStatusMap()
|
var tsmGlobal = newTargetStatusMap()
|
||||||
|
|
||||||
// WriteHumanReadableTargetsStatus writes human-readable status for all the scrape targets to w.
|
// WriteHumanReadableTargetsStatus writes human-readable status for all the scrape targets to w.
|
||||||
func WriteHumanReadableTargetsStatus(w io.Writer) {
|
func WriteHumanReadableTargetsStatus(w io.Writer, showOriginalLabels bool) {
|
||||||
tsmGlobal.WriteHumanReadable(w)
|
tsmGlobal.WriteHumanReadable(w, showOriginalLabels)
|
||||||
}
|
}
|
||||||
|
|
||||||
type targetStatusMap struct {
|
type targetStatusMap struct {
|
||||||
|
@ -73,7 +73,7 @@ func (tsm *targetStatusMap) StatusByGroup(group string, up bool) int {
|
||||||
return count
|
return count
|
||||||
}
|
}
|
||||||
|
|
||||||
func (tsm *targetStatusMap) WriteHumanReadable(w io.Writer) {
|
func (tsm *targetStatusMap) WriteHumanReadable(w io.Writer, showOriginalLabels bool) {
|
||||||
byJob := make(map[string][]targetStatus)
|
byJob := make(map[string][]targetStatus)
|
||||||
tsm.mu.Lock()
|
tsm.mu.Lock()
|
||||||
for _, st := range tsm.m {
|
for _, st := range tsm.m {
|
||||||
|
@ -111,6 +111,9 @@ func (tsm *targetStatusMap) WriteHumanReadable(w io.Writer) {
|
||||||
state = "down"
|
state = "down"
|
||||||
}
|
}
|
||||||
labelsStr := st.sw.LabelsString()
|
labelsStr := st.sw.LabelsString()
|
||||||
|
if showOriginalLabels {
|
||||||
|
labelsStr += ", originalLabels=" + promLabelsString(st.sw.OriginalLabels)
|
||||||
|
}
|
||||||
lastScrape := st.getDurationFromLastScrape()
|
lastScrape := st.getDurationFromLastScrape()
|
||||||
errMsg := ""
|
errMsg := ""
|
||||||
if st.err != nil {
|
if st.err != nil {
|
||||||
|
|
2
vendor/github.com/VictoriaMetrics/metricsql/optimizer.go
generated
vendored
2
vendor/github.com/VictoriaMetrics/metricsql/optimizer.go
generated
vendored
|
@ -15,7 +15,7 @@ func Optimize(e Expr) Expr {
|
||||||
switch t.Op {
|
switch t.Op {
|
||||||
case "+", "-", "*", "/", "%", "^",
|
case "+", "-", "*", "/", "%", "^",
|
||||||
"==", "!=", ">", "<", ">=", "<=",
|
"==", "!=", ">", "<", ">=", "<=",
|
||||||
"if", "ifnot", "default":
|
"and", "if", "ifnot", "default":
|
||||||
// The optimization can be applied only to these operations.
|
// The optimization can be applied only to these operations.
|
||||||
default:
|
default:
|
||||||
return optimizeBinaryOpArgs(t)
|
return optimizeBinaryOpArgs(t)
|
||||||
|
|
4
vendor/github.com/aws/aws-sdk-go/aws/credentials/credentials.go
generated
vendored
4
vendor/github.com/aws/aws-sdk-go/aws/credentials/credentials.go
generated
vendored
|
@ -173,7 +173,9 @@ type Expiry struct {
|
||||||
// the expiration time given to ensure no requests are made with expired
|
// the expiration time given to ensure no requests are made with expired
|
||||||
// tokens.
|
// tokens.
|
||||||
func (e *Expiry) SetExpiration(expiration time.Time, window time.Duration) {
|
func (e *Expiry) SetExpiration(expiration time.Time, window time.Duration) {
|
||||||
e.expiration = expiration
|
// Passed in expirations should have the monotonic clock values stripped.
|
||||||
|
// This ensures time comparisons will be based on wall-time.
|
||||||
|
e.expiration = expiration.Round(0)
|
||||||
if window > 0 {
|
if window > 0 {
|
||||||
e.expiration = e.expiration.Add(-window)
|
e.expiration = e.expiration.Add(-window)
|
||||||
}
|
}
|
||||||
|
|
1
vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/token_provider.go
generated
vendored
1
vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/token_provider.go
generated
vendored
|
@ -87,6 +87,7 @@ func (t *tokenProvider) enableTokenProviderHandler(r *request.Request) {
|
||||||
// If the error code status is 401, we enable the token provider
|
// If the error code status is 401, we enable the token provider
|
||||||
if e, ok := r.Error.(awserr.RequestFailure); ok && e != nil &&
|
if e, ok := r.Error.(awserr.RequestFailure); ok && e != nil &&
|
||||||
e.StatusCode() == http.StatusUnauthorized {
|
e.StatusCode() == http.StatusUnauthorized {
|
||||||
|
t.token.Store(ec2Token{})
|
||||||
atomic.StoreUint32(&t.disabled, 0)
|
atomic.StoreUint32(&t.disabled, 0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
2
vendor/github.com/aws/aws-sdk-go/aws/version.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/aws/version.go
generated
vendored
|
@ -5,4 +5,4 @@ package aws
|
||||||
const SDKName = "aws-sdk-go"
|
const SDKName = "aws-sdk-go"
|
||||||
|
|
||||||
// SDKVersion is the version of this SDK
|
// SDKVersion is the version of this SDK
|
||||||
const SDKVersion = "1.35.3"
|
const SDKVersion = "1.35.5"
|
||||||
|
|
2
vendor/go.opencensus.io/go.mod
generated
vendored
2
vendor/go.opencensus.io/go.mod
generated
vendored
|
@ -7,7 +7,7 @@ require (
|
||||||
github.com/stretchr/testify v1.4.0
|
github.com/stretchr/testify v1.4.0
|
||||||
golang.org/x/net v0.0.0-20190620200207-3b0461eec859
|
golang.org/x/net v0.0.0-20190620200207-3b0461eec859
|
||||||
golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd // indirect
|
golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd // indirect
|
||||||
golang.org/x/text v0.3.2 // indirect
|
golang.org/x/text v0.3.3 // indirect
|
||||||
google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb // indirect
|
google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb // indirect
|
||||||
google.golang.org/grpc v1.20.1
|
google.golang.org/grpc v1.20.1
|
||||||
)
|
)
|
||||||
|
|
18
vendor/go.opencensus.io/stats/view/aggregation.go
generated
vendored
18
vendor/go.opencensus.io/stats/view/aggregation.go
generated
vendored
|
@ -15,6 +15,8 @@
|
||||||
|
|
||||||
package view
|
package view
|
||||||
|
|
||||||
|
import "time"
|
||||||
|
|
||||||
// AggType represents the type of aggregation function used on a View.
|
// AggType represents the type of aggregation function used on a View.
|
||||||
type AggType int
|
type AggType int
|
||||||
|
|
||||||
|
@ -45,20 +47,20 @@ type Aggregation struct {
|
||||||
Type AggType // Type is the AggType of this Aggregation.
|
Type AggType // Type is the AggType of this Aggregation.
|
||||||
Buckets []float64 // Buckets are the bucket endpoints if this Aggregation represents a distribution, see Distribution.
|
Buckets []float64 // Buckets are the bucket endpoints if this Aggregation represents a distribution, see Distribution.
|
||||||
|
|
||||||
newData func() AggregationData
|
newData func(time.Time) AggregationData
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
aggCount = &Aggregation{
|
aggCount = &Aggregation{
|
||||||
Type: AggTypeCount,
|
Type: AggTypeCount,
|
||||||
newData: func() AggregationData {
|
newData: func(t time.Time) AggregationData {
|
||||||
return &CountData{}
|
return &CountData{Start: t}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
aggSum = &Aggregation{
|
aggSum = &Aggregation{
|
||||||
Type: AggTypeSum,
|
Type: AggTypeSum,
|
||||||
newData: func() AggregationData {
|
newData: func(t time.Time) AggregationData {
|
||||||
return &SumData{}
|
return &SumData{Start: t}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
@ -103,8 +105,8 @@ func Distribution(bounds ...float64) *Aggregation {
|
||||||
Type: AggTypeDistribution,
|
Type: AggTypeDistribution,
|
||||||
Buckets: bounds,
|
Buckets: bounds,
|
||||||
}
|
}
|
||||||
agg.newData = func() AggregationData {
|
agg.newData = func(t time.Time) AggregationData {
|
||||||
return newDistributionData(agg)
|
return newDistributionData(agg, t)
|
||||||
}
|
}
|
||||||
return agg
|
return agg
|
||||||
}
|
}
|
||||||
|
@ -114,7 +116,7 @@ func Distribution(bounds ...float64) *Aggregation {
|
||||||
func LastValue() *Aggregation {
|
func LastValue() *Aggregation {
|
||||||
return &Aggregation{
|
return &Aggregation{
|
||||||
Type: AggTypeLastValue,
|
Type: AggTypeLastValue,
|
||||||
newData: func() AggregationData {
|
newData: func(_ time.Time) AggregationData {
|
||||||
return &LastValueData{}
|
return &LastValueData{}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
55
vendor/go.opencensus.io/stats/view/aggregation_data.go
generated
vendored
55
vendor/go.opencensus.io/stats/view/aggregation_data.go
generated
vendored
|
@ -31,6 +31,7 @@ type AggregationData interface {
|
||||||
clone() AggregationData
|
clone() AggregationData
|
||||||
equal(other AggregationData) bool
|
equal(other AggregationData) bool
|
||||||
toPoint(t metricdata.Type, time time.Time) metricdata.Point
|
toPoint(t metricdata.Type, time time.Time) metricdata.Point
|
||||||
|
StartTime() time.Time
|
||||||
}
|
}
|
||||||
|
|
||||||
const epsilon = 1e-9
|
const epsilon = 1e-9
|
||||||
|
@ -40,6 +41,7 @@ const epsilon = 1e-9
|
||||||
//
|
//
|
||||||
// Most users won't directly access count data.
|
// Most users won't directly access count data.
|
||||||
type CountData struct {
|
type CountData struct {
|
||||||
|
Start time.Time
|
||||||
Value int64
|
Value int64
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -50,7 +52,7 @@ func (a *CountData) addSample(_ float64, _ map[string]interface{}, _ time.Time)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *CountData) clone() AggregationData {
|
func (a *CountData) clone() AggregationData {
|
||||||
return &CountData{Value: a.Value}
|
return &CountData{Value: a.Value, Start: a.Start}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *CountData) equal(other AggregationData) bool {
|
func (a *CountData) equal(other AggregationData) bool {
|
||||||
|
@ -59,7 +61,7 @@ func (a *CountData) equal(other AggregationData) bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
return a.Value == a2.Value
|
return a.Start.Equal(a2.Start) && a.Value == a2.Value
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *CountData) toPoint(metricType metricdata.Type, t time.Time) metricdata.Point {
|
func (a *CountData) toPoint(metricType metricdata.Type, t time.Time) metricdata.Point {
|
||||||
|
@ -71,11 +73,17 @@ func (a *CountData) toPoint(metricType metricdata.Type, t time.Time) metricdata.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// StartTime returns the start time of the data being aggregated by CountData.
|
||||||
|
func (a *CountData) StartTime() time.Time {
|
||||||
|
return a.Start
|
||||||
|
}
|
||||||
|
|
||||||
// SumData is the aggregated data for the Sum aggregation.
|
// SumData is the aggregated data for the Sum aggregation.
|
||||||
// A sum aggregation processes data and sums up the recordings.
|
// A sum aggregation processes data and sums up the recordings.
|
||||||
//
|
//
|
||||||
// Most users won't directly access sum data.
|
// Most users won't directly access sum data.
|
||||||
type SumData struct {
|
type SumData struct {
|
||||||
|
Start time.Time
|
||||||
Value float64
|
Value float64
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -86,7 +94,7 @@ func (a *SumData) addSample(v float64, _ map[string]interface{}, _ time.Time) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *SumData) clone() AggregationData {
|
func (a *SumData) clone() AggregationData {
|
||||||
return &SumData{Value: a.Value}
|
return &SumData{Value: a.Value, Start: a.Start}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *SumData) equal(other AggregationData) bool {
|
func (a *SumData) equal(other AggregationData) bool {
|
||||||
|
@ -94,7 +102,7 @@ func (a *SumData) equal(other AggregationData) bool {
|
||||||
if !ok {
|
if !ok {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return math.Pow(a.Value-a2.Value, 2) < epsilon
|
return a.Start.Equal(a2.Start) && math.Pow(a.Value-a2.Value, 2) < epsilon
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *SumData) toPoint(metricType metricdata.Type, t time.Time) metricdata.Point {
|
func (a *SumData) toPoint(metricType metricdata.Type, t time.Time) metricdata.Point {
|
||||||
|
@ -108,6 +116,11 @@ func (a *SumData) toPoint(metricType metricdata.Type, t time.Time) metricdata.Po
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// StartTime returns the start time of the data being aggregated by SumData.
|
||||||
|
func (a *SumData) StartTime() time.Time {
|
||||||
|
return a.Start
|
||||||
|
}
|
||||||
|
|
||||||
// DistributionData is the aggregated data for the
|
// DistributionData is the aggregated data for the
|
||||||
// Distribution aggregation.
|
// Distribution aggregation.
|
||||||
//
|
//
|
||||||
|
@ -126,9 +139,10 @@ type DistributionData struct {
|
||||||
// an exemplar for the associated bucket, or nil.
|
// an exemplar for the associated bucket, or nil.
|
||||||
ExemplarsPerBucket []*metricdata.Exemplar
|
ExemplarsPerBucket []*metricdata.Exemplar
|
||||||
bounds []float64 // histogram distribution of the values
|
bounds []float64 // histogram distribution of the values
|
||||||
|
Start time.Time
|
||||||
}
|
}
|
||||||
|
|
||||||
func newDistributionData(agg *Aggregation) *DistributionData {
|
func newDistributionData(agg *Aggregation, t time.Time) *DistributionData {
|
||||||
bucketCount := len(agg.Buckets) + 1
|
bucketCount := len(agg.Buckets) + 1
|
||||||
return &DistributionData{
|
return &DistributionData{
|
||||||
CountPerBucket: make([]int64, bucketCount),
|
CountPerBucket: make([]int64, bucketCount),
|
||||||
|
@ -136,6 +150,7 @@ func newDistributionData(agg *Aggregation) *DistributionData {
|
||||||
bounds: agg.Buckets,
|
bounds: agg.Buckets,
|
||||||
Min: math.MaxFloat64,
|
Min: math.MaxFloat64,
|
||||||
Max: math.SmallestNonzeroFloat64,
|
Max: math.SmallestNonzeroFloat64,
|
||||||
|
Start: t,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -226,7 +241,11 @@ func (a *DistributionData) equal(other AggregationData) bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return a.Count == a2.Count && a.Min == a2.Min && a.Max == a2.Max && math.Pow(a.Mean-a2.Mean, 2) < epsilon && math.Pow(a.variance()-a2.variance(), 2) < epsilon
|
return a.Start.Equal(a2.Start) &&
|
||||||
|
a.Count == a2.Count &&
|
||||||
|
a.Min == a2.Min &&
|
||||||
|
a.Max == a2.Max &&
|
||||||
|
math.Pow(a.Mean-a2.Mean, 2) < epsilon && math.Pow(a.variance()-a2.variance(), 2) < epsilon
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *DistributionData) toPoint(metricType metricdata.Type, t time.Time) metricdata.Point {
|
func (a *DistributionData) toPoint(metricType metricdata.Type, t time.Time) metricdata.Point {
|
||||||
|
@ -256,6 +275,11 @@ func (a *DistributionData) toPoint(metricType metricdata.Type, t time.Time) metr
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// StartTime returns the start time of the data being aggregated by DistributionData.
|
||||||
|
func (a *DistributionData) StartTime() time.Time {
|
||||||
|
return a.Start
|
||||||
|
}
|
||||||
|
|
||||||
// LastValueData returns the last value recorded for LastValue aggregation.
|
// LastValueData returns the last value recorded for LastValue aggregation.
|
||||||
type LastValueData struct {
|
type LastValueData struct {
|
||||||
Value float64
|
Value float64
|
||||||
|
@ -291,3 +315,22 @@ func (l *LastValueData) toPoint(metricType metricdata.Type, t time.Time) metricd
|
||||||
panic("unsupported metricdata.Type")
|
panic("unsupported metricdata.Type")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// StartTime returns an empty time value as start time is not recorded when using last value
|
||||||
|
// aggregation.
|
||||||
|
func (l *LastValueData) StartTime() time.Time {
|
||||||
|
return time.Time{}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ClearStart clears the Start field from data if present. Useful for testing in cases where the
|
||||||
|
// start time will be nondeterministic.
|
||||||
|
func ClearStart(data AggregationData) {
|
||||||
|
switch data := data.(type) {
|
||||||
|
case *CountData:
|
||||||
|
data.Start = time.Time{}
|
||||||
|
case *SumData:
|
||||||
|
data.Start = time.Time{}
|
||||||
|
case *DistributionData:
|
||||||
|
data.Start = time.Time{}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
2
vendor/go.opencensus.io/stats/view/collector.go
generated
vendored
2
vendor/go.opencensus.io/stats/view/collector.go
generated
vendored
|
@ -35,7 +35,7 @@ type collector struct {
|
||||||
func (c *collector) addSample(s string, v float64, attachments map[string]interface{}, t time.Time) {
|
func (c *collector) addSample(s string, v float64, attachments map[string]interface{}, t time.Time) {
|
||||||
aggregator, ok := c.signatures[s]
|
aggregator, ok := c.signatures[s]
|
||||||
if !ok {
|
if !ok {
|
||||||
aggregator = c.a.newData()
|
aggregator = c.a.newData(t)
|
||||||
c.signatures[s] = aggregator
|
c.signatures[s] = aggregator
|
||||||
}
|
}
|
||||||
aggregator.addSample(v, attachments, t)
|
aggregator.addSample(v, attachments, t)
|
||||||
|
|
13
vendor/go.opencensus.io/stats/view/view_to_metric.go
generated
vendored
13
vendor/go.opencensus.io/stats/view/view_to_metric.go
generated
vendored
|
@ -119,20 +119,15 @@ func toLabelValues(row *Row, expectedKeys []metricdata.LabelKey) []metricdata.La
|
||||||
return labelValues
|
return labelValues
|
||||||
}
|
}
|
||||||
|
|
||||||
func rowToTimeseries(v *viewInternal, row *Row, now time.Time, startTime time.Time) *metricdata.TimeSeries {
|
func rowToTimeseries(v *viewInternal, row *Row, now time.Time) *metricdata.TimeSeries {
|
||||||
return &metricdata.TimeSeries{
|
return &metricdata.TimeSeries{
|
||||||
Points: []metricdata.Point{row.Data.toPoint(v.metricDescriptor.Type, now)},
|
Points: []metricdata.Point{row.Data.toPoint(v.metricDescriptor.Type, now)},
|
||||||
LabelValues: toLabelValues(row, v.metricDescriptor.LabelKeys),
|
LabelValues: toLabelValues(row, v.metricDescriptor.LabelKeys),
|
||||||
StartTime: startTime,
|
StartTime: row.Data.StartTime(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func viewToMetric(v *viewInternal, r *resource.Resource, now time.Time, startTime time.Time) *metricdata.Metric {
|
func viewToMetric(v *viewInternal, r *resource.Resource, now time.Time) *metricdata.Metric {
|
||||||
if v.metricDescriptor.Type == metricdata.TypeGaugeInt64 ||
|
|
||||||
v.metricDescriptor.Type == metricdata.TypeGaugeFloat64 {
|
|
||||||
startTime = time.Time{}
|
|
||||||
}
|
|
||||||
|
|
||||||
rows := v.collectedRows()
|
rows := v.collectedRows()
|
||||||
if len(rows) == 0 {
|
if len(rows) == 0 {
|
||||||
return nil
|
return nil
|
||||||
|
@ -140,7 +135,7 @@ func viewToMetric(v *viewInternal, r *resource.Resource, now time.Time, startTim
|
||||||
|
|
||||||
ts := []*metricdata.TimeSeries{}
|
ts := []*metricdata.TimeSeries{}
|
||||||
for _, row := range rows {
|
for _, row := range rows {
|
||||||
ts = append(ts, rowToTimeseries(v, row, now, startTime))
|
ts = append(ts, rowToTimeseries(v, row, now))
|
||||||
}
|
}
|
||||||
|
|
||||||
m := &metricdata.Metric{
|
m := &metricdata.Metric{
|
||||||
|
|
36
vendor/go.opencensus.io/stats/view/worker.go
generated
vendored
36
vendor/go.opencensus.io/stats/view/worker.go
generated
vendored
|
@ -41,9 +41,9 @@ type measureRef struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type worker struct {
|
type worker struct {
|
||||||
measures map[string]*measureRef
|
measures map[string]*measureRef
|
||||||
views map[string]*viewInternal
|
views map[string]*viewInternal
|
||||||
startTimes map[*viewInternal]time.Time
|
viewStartTimes map[*viewInternal]time.Time
|
||||||
|
|
||||||
timer *time.Ticker
|
timer *time.Ticker
|
||||||
c chan command
|
c chan command
|
||||||
|
@ -244,13 +244,13 @@ func (w *worker) SetReportingPeriod(d time.Duration) {
|
||||||
// a single process.
|
// a single process.
|
||||||
func NewMeter() Meter {
|
func NewMeter() Meter {
|
||||||
return &worker{
|
return &worker{
|
||||||
measures: make(map[string]*measureRef),
|
measures: make(map[string]*measureRef),
|
||||||
views: make(map[string]*viewInternal),
|
views: make(map[string]*viewInternal),
|
||||||
startTimes: make(map[*viewInternal]time.Time),
|
viewStartTimes: make(map[*viewInternal]time.Time),
|
||||||
timer: time.NewTicker(defaultReportingDuration),
|
timer: time.NewTicker(defaultReportingDuration),
|
||||||
c: make(chan command, 1024),
|
c: make(chan command, 1024),
|
||||||
quit: make(chan bool),
|
quit: make(chan bool),
|
||||||
done: make(chan bool),
|
done: make(chan bool),
|
||||||
|
|
||||||
exporters: make(map[Exporter]struct{}),
|
exporters: make(map[Exporter]struct{}),
|
||||||
}
|
}
|
||||||
|
@ -324,7 +324,7 @@ func (w *worker) tryRegisterView(v *View) (*viewInternal, error) {
|
||||||
return x, nil
|
return x, nil
|
||||||
}
|
}
|
||||||
w.views[vi.view.Name] = vi
|
w.views[vi.view.Name] = vi
|
||||||
w.startTimes[vi] = time.Now()
|
w.viewStartTimes[vi] = time.Now()
|
||||||
ref := w.getMeasureRef(vi.view.Measure.Name())
|
ref := w.getMeasureRef(vi.view.Measure.Name())
|
||||||
ref.views[vi] = struct{}{}
|
ref.views[vi] = struct{}{}
|
||||||
return vi, nil
|
return vi, nil
|
||||||
|
@ -334,7 +334,7 @@ func (w *worker) unregisterView(v *viewInternal) {
|
||||||
w.mu.Lock()
|
w.mu.Lock()
|
||||||
defer w.mu.Unlock()
|
defer w.mu.Unlock()
|
||||||
delete(w.views, v.view.Name)
|
delete(w.views, v.view.Name)
|
||||||
delete(w.startTimes, v)
|
delete(w.viewStartTimes, v)
|
||||||
if measure := w.measures[v.view.Measure.Name()]; measure != nil {
|
if measure := w.measures[v.view.Measure.Name()]; measure != nil {
|
||||||
delete(measure.views, v)
|
delete(measure.views, v)
|
||||||
}
|
}
|
||||||
|
@ -347,7 +347,7 @@ func (w *worker) reportView(v *viewInternal) {
|
||||||
rows := v.collectedRows()
|
rows := v.collectedRows()
|
||||||
viewData := &Data{
|
viewData := &Data{
|
||||||
View: v.view,
|
View: v.view,
|
||||||
Start: w.startTimes[v],
|
Start: w.viewStartTimes[v],
|
||||||
End: time.Now(),
|
End: time.Now(),
|
||||||
Rows: rows,
|
Rows: rows,
|
||||||
}
|
}
|
||||||
|
@ -371,15 +371,7 @@ func (w *worker) toMetric(v *viewInternal, now time.Time) *metricdata.Metric {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
var startTime time.Time
|
return viewToMetric(v, w.r, now)
|
||||||
if v.metricDescriptor.Type == metricdata.TypeGaugeInt64 ||
|
|
||||||
v.metricDescriptor.Type == metricdata.TypeGaugeFloat64 {
|
|
||||||
startTime = time.Time{}
|
|
||||||
} else {
|
|
||||||
startTime = w.startTimes[v]
|
|
||||||
}
|
|
||||||
|
|
||||||
return viewToMetric(v, w.r, now, startTime)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Read reads all view data and returns them as metrics.
|
// Read reads all view data and returns them as metrics.
|
||||||
|
|
35
vendor/go.opencensus.io/trace/trace.go
generated
vendored
35
vendor/go.opencensus.io/trace/trace.go
generated
vendored
|
@ -206,6 +206,10 @@ func startSpanInternal(name string, hasParent bool, parent SpanContext, remotePa
|
||||||
span.spanContext = parent
|
span.spanContext = parent
|
||||||
|
|
||||||
cfg := config.Load().(*Config)
|
cfg := config.Load().(*Config)
|
||||||
|
if gen, ok := cfg.IDGenerator.(*defaultIDGenerator); ok {
|
||||||
|
// lazy initialization
|
||||||
|
gen.init()
|
||||||
|
}
|
||||||
|
|
||||||
if !hasParent {
|
if !hasParent {
|
||||||
span.spanContext.TraceID = cfg.IDGenerator.NewTraceID()
|
span.spanContext.TraceID = cfg.IDGenerator.NewTraceID()
|
||||||
|
@ -534,20 +538,9 @@ func (s *Span) String() string {
|
||||||
var config atomic.Value // access atomically
|
var config atomic.Value // access atomically
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
gen := &defaultIDGenerator{}
|
|
||||||
// initialize traceID and spanID generators.
|
|
||||||
var rngSeed int64
|
|
||||||
for _, p := range []interface{}{
|
|
||||||
&rngSeed, &gen.traceIDAdd, &gen.nextSpanID, &gen.spanIDInc,
|
|
||||||
} {
|
|
||||||
binary.Read(crand.Reader, binary.LittleEndian, p)
|
|
||||||
}
|
|
||||||
gen.traceIDRand = rand.New(rand.NewSource(rngSeed))
|
|
||||||
gen.spanIDInc |= 1
|
|
||||||
|
|
||||||
config.Store(&Config{
|
config.Store(&Config{
|
||||||
DefaultSampler: ProbabilitySampler(defaultSamplingProbability),
|
DefaultSampler: ProbabilitySampler(defaultSamplingProbability),
|
||||||
IDGenerator: gen,
|
IDGenerator: &defaultIDGenerator{},
|
||||||
MaxAttributesPerSpan: DefaultMaxAttributesPerSpan,
|
MaxAttributesPerSpan: DefaultMaxAttributesPerSpan,
|
||||||
MaxAnnotationEventsPerSpan: DefaultMaxAnnotationEventsPerSpan,
|
MaxAnnotationEventsPerSpan: DefaultMaxAnnotationEventsPerSpan,
|
||||||
MaxMessageEventsPerSpan: DefaultMaxMessageEventsPerSpan,
|
MaxMessageEventsPerSpan: DefaultMaxMessageEventsPerSpan,
|
||||||
|
@ -571,6 +564,24 @@ type defaultIDGenerator struct {
|
||||||
|
|
||||||
traceIDAdd [2]uint64
|
traceIDAdd [2]uint64
|
||||||
traceIDRand *rand.Rand
|
traceIDRand *rand.Rand
|
||||||
|
|
||||||
|
initOnce sync.Once
|
||||||
|
}
|
||||||
|
|
||||||
|
// init initializes the generator on the first call to avoid consuming entropy
|
||||||
|
// unnecessarily.
|
||||||
|
func (gen *defaultIDGenerator) init() {
|
||||||
|
gen.initOnce.Do(func() {
|
||||||
|
// initialize traceID and spanID generators.
|
||||||
|
var rngSeed int64
|
||||||
|
for _, p := range []interface{}{
|
||||||
|
&rngSeed, &gen.traceIDAdd, &gen.nextSpanID, &gen.spanIDInc,
|
||||||
|
} {
|
||||||
|
binary.Read(crand.Reader, binary.LittleEndian, p)
|
||||||
|
}
|
||||||
|
gen.traceIDRand = rand.New(rand.NewSource(rngSeed))
|
||||||
|
gen.spanIDInc |= 1
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewSpanID returns a non-zero span ID from a randomly-chosen sequence.
|
// NewSpanID returns a non-zero span ID from a randomly-chosen sequence.
|
||||||
|
|
1
vendor/golang.org/x/sys/unix/mkerrors.sh
generated
vendored
1
vendor/golang.org/x/sys/unix/mkerrors.sh
generated
vendored
|
@ -94,6 +94,7 @@ includes_DragonFly='
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <net/bpf.h>
|
#include <net/bpf.h>
|
||||||
#include <net/if.h>
|
#include <net/if.h>
|
||||||
|
#include <net/if_clone.h>
|
||||||
#include <net/if_types.h>
|
#include <net/if_types.h>
|
||||||
#include <net/route.h>
|
#include <net/route.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
|
|
2
vendor/golang.org/x/sys/unix/syscall_solaris.go
generated
vendored
2
vendor/golang.org/x/sys/unix/syscall_solaris.go
generated
vendored
|
@ -554,7 +554,7 @@ func Minor(dev uint64) uint32 {
|
||||||
|
|
||||||
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
||||||
|
|
||||||
func IoctlSetTermio(fd int, req uint, value *Termio) (err error) {
|
func IoctlSetTermio(fd int, req uint, value *Termio) error {
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||||
runtime.KeepAlive(value)
|
runtime.KeepAlive(value)
|
||||||
return err
|
return err
|
||||||
|
|
138
vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go
generated
vendored
138
vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go
generated
vendored
|
@ -62,6 +62,7 @@ const (
|
||||||
B28800 = 0x7080
|
B28800 = 0x7080
|
||||||
B300 = 0x12c
|
B300 = 0x12c
|
||||||
B38400 = 0x9600
|
B38400 = 0x9600
|
||||||
|
B460800 = 0x70800
|
||||||
B4800 = 0x12c0
|
B4800 = 0x12c0
|
||||||
B50 = 0x32
|
B50 = 0x32
|
||||||
B57600 = 0xe100
|
B57600 = 0xe100
|
||||||
|
@ -69,12 +70,15 @@ const (
|
||||||
B7200 = 0x1c20
|
B7200 = 0x1c20
|
||||||
B75 = 0x4b
|
B75 = 0x4b
|
||||||
B76800 = 0x12c00
|
B76800 = 0x12c00
|
||||||
|
B921600 = 0xe1000
|
||||||
B9600 = 0x2580
|
B9600 = 0x2580
|
||||||
|
BIOCFEEDBACK = 0x8004427d
|
||||||
BIOCFLUSH = 0x20004268
|
BIOCFLUSH = 0x20004268
|
||||||
BIOCGBLEN = 0x40044266
|
BIOCGBLEN = 0x40044266
|
||||||
BIOCGDLT = 0x4004426a
|
BIOCGDLT = 0x4004426a
|
||||||
BIOCGDLTLIST = 0xc0104279
|
BIOCGDLTLIST = 0xc0104279
|
||||||
BIOCGETIF = 0x4020426b
|
BIOCGETIF = 0x4020426b
|
||||||
|
BIOCGFEEDBACK = 0x4004427c
|
||||||
BIOCGHDRCMPLT = 0x40044274
|
BIOCGHDRCMPLT = 0x40044274
|
||||||
BIOCGRSIG = 0x40044272
|
BIOCGRSIG = 0x40044272
|
||||||
BIOCGRTIMEOUT = 0x4010426e
|
BIOCGRTIMEOUT = 0x4010426e
|
||||||
|
@ -88,6 +92,7 @@ const (
|
||||||
BIOCSETF = 0x80104267
|
BIOCSETF = 0x80104267
|
||||||
BIOCSETIF = 0x8020426c
|
BIOCSETIF = 0x8020426c
|
||||||
BIOCSETWF = 0x8010427b
|
BIOCSETWF = 0x8010427b
|
||||||
|
BIOCSFEEDBACK = 0x8004427d
|
||||||
BIOCSHDRCMPLT = 0x80044275
|
BIOCSHDRCMPLT = 0x80044275
|
||||||
BIOCSRSIG = 0x80044273
|
BIOCSRSIG = 0x80044273
|
||||||
BIOCSRTIMEOUT = 0x8010426d
|
BIOCSRTIMEOUT = 0x8010426d
|
||||||
|
@ -125,6 +130,7 @@ const (
|
||||||
BPF_MINBUFSIZE = 0x20
|
BPF_MINBUFSIZE = 0x20
|
||||||
BPF_MINOR_VERSION = 0x1
|
BPF_MINOR_VERSION = 0x1
|
||||||
BPF_MISC = 0x7
|
BPF_MISC = 0x7
|
||||||
|
BPF_MOD = 0x90
|
||||||
BPF_MSH = 0xa0
|
BPF_MSH = 0xa0
|
||||||
BPF_MUL = 0x20
|
BPF_MUL = 0x20
|
||||||
BPF_NEG = 0x80
|
BPF_NEG = 0x80
|
||||||
|
@ -139,6 +145,7 @@ const (
|
||||||
BPF_TXA = 0x80
|
BPF_TXA = 0x80
|
||||||
BPF_W = 0x0
|
BPF_W = 0x0
|
||||||
BPF_X = 0x8
|
BPF_X = 0x8
|
||||||
|
BPF_XOR = 0xa0
|
||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
CLOCAL = 0x8000
|
CLOCAL = 0x8000
|
||||||
|
@ -156,6 +163,12 @@ const (
|
||||||
CLOCK_UPTIME_FAST = 0x8
|
CLOCK_UPTIME_FAST = 0x8
|
||||||
CLOCK_UPTIME_PRECISE = 0x7
|
CLOCK_UPTIME_PRECISE = 0x7
|
||||||
CLOCK_VIRTUAL = 0x1
|
CLOCK_VIRTUAL = 0x1
|
||||||
|
CPUSTATES = 0x5
|
||||||
|
CP_IDLE = 0x4
|
||||||
|
CP_INTR = 0x3
|
||||||
|
CP_NICE = 0x1
|
||||||
|
CP_SYS = 0x2
|
||||||
|
CP_USER = 0x0
|
||||||
CREAD = 0x800
|
CREAD = 0x800
|
||||||
CRTSCTS = 0x30000
|
CRTSCTS = 0x30000
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
|
@ -175,6 +188,7 @@ const (
|
||||||
DLT_A429 = 0xb8
|
DLT_A429 = 0xb8
|
||||||
DLT_A653_ICM = 0xb9
|
DLT_A653_ICM = 0xb9
|
||||||
DLT_AIRONET_HEADER = 0x78
|
DLT_AIRONET_HEADER = 0x78
|
||||||
|
DLT_AOS = 0xde
|
||||||
DLT_APPLE_IP_OVER_IEEE1394 = 0x8a
|
DLT_APPLE_IP_OVER_IEEE1394 = 0x8a
|
||||||
DLT_ARCNET = 0x7
|
DLT_ARCNET = 0x7
|
||||||
DLT_ARCNET_LINUX = 0x81
|
DLT_ARCNET_LINUX = 0x81
|
||||||
|
@ -184,22 +198,33 @@ const (
|
||||||
DLT_AX25 = 0x3
|
DLT_AX25 = 0x3
|
||||||
DLT_AX25_KISS = 0xca
|
DLT_AX25_KISS = 0xca
|
||||||
DLT_BACNET_MS_TP = 0xa5
|
DLT_BACNET_MS_TP = 0xa5
|
||||||
|
DLT_BLUETOOTH_BREDR_BB = 0xff
|
||||||
DLT_BLUETOOTH_HCI_H4 = 0xbb
|
DLT_BLUETOOTH_HCI_H4 = 0xbb
|
||||||
DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9
|
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_CAN20B = 0xbe
|
||||||
|
DLT_CAN_SOCKETCAN = 0xe3
|
||||||
DLT_CHAOS = 0x5
|
DLT_CHAOS = 0x5
|
||||||
DLT_CHDLC = 0x68
|
DLT_CHDLC = 0x68
|
||||||
DLT_CISCO_IOS = 0x76
|
DLT_CISCO_IOS = 0x76
|
||||||
DLT_C_HDLC = 0x68
|
DLT_C_HDLC = 0x68
|
||||||
DLT_C_HDLC_WITH_DIR = 0xcd
|
DLT_C_HDLC_WITH_DIR = 0xcd
|
||||||
|
DLT_DBUS = 0xe7
|
||||||
|
DLT_DECT = 0xdd
|
||||||
DLT_DOCSIS = 0x8f
|
DLT_DOCSIS = 0x8f
|
||||||
|
DLT_DVB_CI = 0xeb
|
||||||
DLT_ECONET = 0x73
|
DLT_ECONET = 0x73
|
||||||
DLT_EN10MB = 0x1
|
DLT_EN10MB = 0x1
|
||||||
DLT_EN3MB = 0x2
|
DLT_EN3MB = 0x2
|
||||||
DLT_ENC = 0x6d
|
DLT_ENC = 0x6d
|
||||||
|
DLT_EPON = 0x103
|
||||||
DLT_ERF = 0xc5
|
DLT_ERF = 0xc5
|
||||||
DLT_ERF_ETH = 0xaf
|
DLT_ERF_ETH = 0xaf
|
||||||
DLT_ERF_POS = 0xb0
|
DLT_ERF_POS = 0xb0
|
||||||
|
DLT_FC_2 = 0xe0
|
||||||
|
DLT_FC_2_WITH_FRAME_DELIMS = 0xe1
|
||||||
DLT_FDDI = 0xa
|
DLT_FDDI = 0xa
|
||||||
DLT_FLEXRAY = 0xd2
|
DLT_FLEXRAY = 0xd2
|
||||||
DLT_FRELAY = 0x6b
|
DLT_FRELAY = 0x6b
|
||||||
|
@ -209,6 +234,8 @@ const (
|
||||||
DLT_GPF_F = 0xab
|
DLT_GPF_F = 0xab
|
||||||
DLT_GPF_T = 0xaa
|
DLT_GPF_T = 0xaa
|
||||||
DLT_GPRS_LLC = 0xa9
|
DLT_GPRS_LLC = 0xa9
|
||||||
|
DLT_GSMTAP_ABIS = 0xda
|
||||||
|
DLT_GSMTAP_UM = 0xd9
|
||||||
DLT_HHDLC = 0x79
|
DLT_HHDLC = 0x79
|
||||||
DLT_IBM_SN = 0x92
|
DLT_IBM_SN = 0x92
|
||||||
DLT_IBM_SP = 0x91
|
DLT_IBM_SP = 0x91
|
||||||
|
@ -218,18 +245,28 @@ const (
|
||||||
DLT_IEEE802_11_RADIO_AVS = 0xa3
|
DLT_IEEE802_11_RADIO_AVS = 0xa3
|
||||||
DLT_IEEE802_15_4 = 0xc3
|
DLT_IEEE802_15_4 = 0xc3
|
||||||
DLT_IEEE802_15_4_LINUX = 0xbf
|
DLT_IEEE802_15_4_LINUX = 0xbf
|
||||||
|
DLT_IEEE802_15_4_NOFCS = 0xe6
|
||||||
DLT_IEEE802_15_4_NONASK_PHY = 0xd7
|
DLT_IEEE802_15_4_NONASK_PHY = 0xd7
|
||||||
DLT_IEEE802_16_MAC_CPS = 0xbc
|
DLT_IEEE802_16_MAC_CPS = 0xbc
|
||||||
DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1
|
DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1
|
||||||
|
DLT_INFINIBAND = 0xf7
|
||||||
DLT_IPFILTER = 0x74
|
DLT_IPFILTER = 0x74
|
||||||
DLT_IPMB = 0xc7
|
DLT_IPMB = 0xc7
|
||||||
DLT_IPMB_LINUX = 0xd1
|
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_IP_OVER_FC = 0x7a
|
||||||
|
DLT_ISO_14443 = 0x108
|
||||||
DLT_JUNIPER_ATM1 = 0x89
|
DLT_JUNIPER_ATM1 = 0x89
|
||||||
DLT_JUNIPER_ATM2 = 0x87
|
DLT_JUNIPER_ATM2 = 0x87
|
||||||
|
DLT_JUNIPER_ATM_CEMIC = 0xee
|
||||||
DLT_JUNIPER_CHDLC = 0xb5
|
DLT_JUNIPER_CHDLC = 0xb5
|
||||||
DLT_JUNIPER_ES = 0x84
|
DLT_JUNIPER_ES = 0x84
|
||||||
DLT_JUNIPER_ETHER = 0xb2
|
DLT_JUNIPER_ETHER = 0xb2
|
||||||
|
DLT_JUNIPER_FIBRECHANNEL = 0xea
|
||||||
DLT_JUNIPER_FRELAY = 0xb4
|
DLT_JUNIPER_FRELAY = 0xb4
|
||||||
DLT_JUNIPER_GGSN = 0x85
|
DLT_JUNIPER_GGSN = 0x85
|
||||||
DLT_JUNIPER_ISM = 0xc2
|
DLT_JUNIPER_ISM = 0xc2
|
||||||
|
@ -242,25 +279,40 @@ const (
|
||||||
DLT_JUNIPER_PPPOE = 0xa7
|
DLT_JUNIPER_PPPOE = 0xa7
|
||||||
DLT_JUNIPER_PPPOE_ATM = 0xa8
|
DLT_JUNIPER_PPPOE_ATM = 0xa8
|
||||||
DLT_JUNIPER_SERVICES = 0x88
|
DLT_JUNIPER_SERVICES = 0x88
|
||||||
|
DLT_JUNIPER_SRX_E2E = 0xe9
|
||||||
DLT_JUNIPER_ST = 0xc8
|
DLT_JUNIPER_ST = 0xc8
|
||||||
DLT_JUNIPER_VP = 0xb7
|
DLT_JUNIPER_VP = 0xb7
|
||||||
|
DLT_JUNIPER_VS = 0xe8
|
||||||
DLT_LAPB_WITH_DIR = 0xcf
|
DLT_LAPB_WITH_DIR = 0xcf
|
||||||
DLT_LAPD = 0xcb
|
DLT_LAPD = 0xcb
|
||||||
DLT_LIN = 0xd4
|
DLT_LIN = 0xd4
|
||||||
|
DLT_LINUX_EVDEV = 0xd8
|
||||||
DLT_LINUX_IRDA = 0x90
|
DLT_LINUX_IRDA = 0x90
|
||||||
DLT_LINUX_LAPD = 0xb1
|
DLT_LINUX_LAPD = 0xb1
|
||||||
DLT_LINUX_SLL = 0x71
|
DLT_LINUX_SLL = 0x71
|
||||||
DLT_LOOP = 0x6c
|
DLT_LOOP = 0x6c
|
||||||
DLT_LTALK = 0x72
|
DLT_LTALK = 0x72
|
||||||
|
DLT_MATCHING_MAX = 0x109
|
||||||
|
DLT_MATCHING_MIN = 0x68
|
||||||
DLT_MFR = 0xb6
|
DLT_MFR = 0xb6
|
||||||
DLT_MOST = 0xd3
|
DLT_MOST = 0xd3
|
||||||
|
DLT_MPEG_2_TS = 0xf3
|
||||||
|
DLT_MPLS = 0xdb
|
||||||
DLT_MTP2 = 0x8c
|
DLT_MTP2 = 0x8c
|
||||||
DLT_MTP2_WITH_PHDR = 0x8b
|
DLT_MTP2_WITH_PHDR = 0x8b
|
||||||
DLT_MTP3 = 0x8d
|
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_NULL = 0x0
|
||||||
DLT_PCI_EXP = 0x7d
|
DLT_PCI_EXP = 0x7d
|
||||||
DLT_PFLOG = 0x75
|
DLT_PFLOG = 0x75
|
||||||
DLT_PFSYNC = 0x12
|
DLT_PFSYNC = 0x12
|
||||||
|
DLT_PKTAP = 0x102
|
||||||
DLT_PPI = 0xc0
|
DLT_PPI = 0xc0
|
||||||
DLT_PPP = 0x9
|
DLT_PPP = 0x9
|
||||||
DLT_PPP_BSDOS = 0x10
|
DLT_PPP_BSDOS = 0x10
|
||||||
|
@ -269,22 +321,51 @@ const (
|
||||||
DLT_PPP_SERIAL = 0x32
|
DLT_PPP_SERIAL = 0x32
|
||||||
DLT_PPP_WITH_DIR = 0xcc
|
DLT_PPP_WITH_DIR = 0xcc
|
||||||
DLT_PRISM_HEADER = 0x77
|
DLT_PRISM_HEADER = 0x77
|
||||||
|
DLT_PROFIBUS_DL = 0x101
|
||||||
DLT_PRONET = 0x4
|
DLT_PRONET = 0x4
|
||||||
DLT_RAIF1 = 0xc6
|
DLT_RAIF1 = 0xc6
|
||||||
DLT_RAW = 0xc
|
DLT_RAW = 0xc
|
||||||
|
DLT_RDS = 0x109
|
||||||
DLT_REDBACK_SMARTEDGE = 0x20
|
DLT_REDBACK_SMARTEDGE = 0x20
|
||||||
DLT_RIO = 0x7c
|
DLT_RIO = 0x7c
|
||||||
|
DLT_RTAC_SERIAL = 0xfa
|
||||||
DLT_SCCP = 0x8e
|
DLT_SCCP = 0x8e
|
||||||
|
DLT_SCTP = 0xf8
|
||||||
DLT_SITA = 0xc4
|
DLT_SITA = 0xc4
|
||||||
DLT_SLIP = 0x8
|
DLT_SLIP = 0x8
|
||||||
DLT_SLIP_BSDOS = 0xf
|
DLT_SLIP_BSDOS = 0xf
|
||||||
|
DLT_STANAG_5066_D_PDU = 0xed
|
||||||
DLT_SUNATM = 0x7b
|
DLT_SUNATM = 0x7b
|
||||||
DLT_SYMANTEC_FIREWALL = 0x63
|
DLT_SYMANTEC_FIREWALL = 0x63
|
||||||
DLT_TZSP = 0x80
|
DLT_TZSP = 0x80
|
||||||
DLT_USB = 0xba
|
DLT_USB = 0xba
|
||||||
|
DLT_USBPCAP = 0xf9
|
||||||
|
DLT_USB_FREEBSD = 0xba
|
||||||
DLT_USB_LINUX = 0xbd
|
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_SERIAL = 0xd5
|
||||||
DLT_X2E_XORAYA = 0xd6
|
DLT_X2E_XORAYA = 0xd6
|
||||||
|
DLT_ZWAVE_R1_R2 = 0x105
|
||||||
|
DLT_ZWAVE_R3 = 0x106
|
||||||
DT_BLK = 0x6
|
DT_BLK = 0x6
|
||||||
DT_CHR = 0x2
|
DT_CHR = 0x2
|
||||||
DT_DBF = 0xf
|
DT_DBF = 0xf
|
||||||
|
@ -323,10 +404,11 @@ const (
|
||||||
EV_EOF = 0x8000
|
EV_EOF = 0x8000
|
||||||
EV_ERROR = 0x4000
|
EV_ERROR = 0x4000
|
||||||
EV_FLAG1 = 0x2000
|
EV_FLAG1 = 0x2000
|
||||||
|
EV_HUP = 0x800
|
||||||
EV_NODATA = 0x1000
|
EV_NODATA = 0x1000
|
||||||
EV_ONESHOT = 0x10
|
EV_ONESHOT = 0x10
|
||||||
EV_RECEIPT = 0x40
|
EV_RECEIPT = 0x40
|
||||||
EV_SYSFLAGS = 0xf000
|
EV_SYSFLAGS = 0xf800
|
||||||
EXTA = 0x4b00
|
EXTA = 0x4b00
|
||||||
EXTB = 0x9600
|
EXTB = 0x9600
|
||||||
EXTEXIT_LWP = 0x10000
|
EXTEXIT_LWP = 0x10000
|
||||||
|
@ -365,8 +447,9 @@ const (
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ALTPHYS = 0x4000
|
IFF_ALTPHYS = 0x4000
|
||||||
IFF_BROADCAST = 0x2
|
IFF_BROADCAST = 0x2
|
||||||
IFF_CANTCHANGE = 0x118e72
|
IFF_CANTCHANGE = 0x318e72
|
||||||
IFF_DEBUG = 0x4
|
IFF_DEBUG = 0x4
|
||||||
|
IFF_IDIRECT = 0x200000
|
||||||
IFF_LINK0 = 0x1000
|
IFF_LINK0 = 0x1000
|
||||||
IFF_LINK1 = 0x2000
|
IFF_LINK1 = 0x2000
|
||||||
IFF_LINK2 = 0x4000
|
IFF_LINK2 = 0x4000
|
||||||
|
@ -441,7 +524,6 @@ const (
|
||||||
IFT_EPLRS = 0x57
|
IFT_EPLRS = 0x57
|
||||||
IFT_ESCON = 0x49
|
IFT_ESCON = 0x49
|
||||||
IFT_ETHER = 0x6
|
IFT_ETHER = 0x6
|
||||||
IFT_FAITH = 0xf2
|
|
||||||
IFT_FAST = 0x7d
|
IFT_FAST = 0x7d
|
||||||
IFT_FASTETHER = 0x3e
|
IFT_FASTETHER = 0x3e
|
||||||
IFT_FASTETHERFX = 0x45
|
IFT_FASTETHERFX = 0x45
|
||||||
|
@ -614,6 +696,7 @@ const (
|
||||||
IN_CLASSD_NET = 0xf0000000
|
IN_CLASSD_NET = 0xf0000000
|
||||||
IN_CLASSD_NSHIFT = 0x1c
|
IN_CLASSD_NSHIFT = 0x1c
|
||||||
IN_LOOPBACKNET = 0x7f
|
IN_LOOPBACKNET = 0x7f
|
||||||
|
IN_RFC3021_MASK = 0xfffffffe
|
||||||
IPPROTO_3PC = 0x22
|
IPPROTO_3PC = 0x22
|
||||||
IPPROTO_ADFS = 0x44
|
IPPROTO_ADFS = 0x44
|
||||||
IPPROTO_AH = 0x33
|
IPPROTO_AH = 0x33
|
||||||
|
@ -735,7 +818,6 @@ const (
|
||||||
IPV6_DEFHLIM = 0x40
|
IPV6_DEFHLIM = 0x40
|
||||||
IPV6_DONTFRAG = 0x3e
|
IPV6_DONTFRAG = 0x3e
|
||||||
IPV6_DSTOPTS = 0x32
|
IPV6_DSTOPTS = 0x32
|
||||||
IPV6_FAITH = 0x1d
|
|
||||||
IPV6_FLOWINFO_MASK = 0xffffff0f
|
IPV6_FLOWINFO_MASK = 0xffffff0f
|
||||||
IPV6_FLOWLABEL_MASK = 0xffff0f00
|
IPV6_FLOWLABEL_MASK = 0xffff0f00
|
||||||
IPV6_FRAGTTL = 0x78
|
IPV6_FRAGTTL = 0x78
|
||||||
|
@ -747,7 +829,6 @@ const (
|
||||||
IPV6_HLIMDEC = 0x1
|
IPV6_HLIMDEC = 0x1
|
||||||
IPV6_HOPLIMIT = 0x2f
|
IPV6_HOPLIMIT = 0x2f
|
||||||
IPV6_HOPOPTS = 0x31
|
IPV6_HOPOPTS = 0x31
|
||||||
IPV6_IPSEC_POLICY = 0x1c
|
|
||||||
IPV6_JOIN_GROUP = 0xc
|
IPV6_JOIN_GROUP = 0xc
|
||||||
IPV6_LEAVE_GROUP = 0xd
|
IPV6_LEAVE_GROUP = 0xd
|
||||||
IPV6_MAXHLIM = 0xff
|
IPV6_MAXHLIM = 0xff
|
||||||
|
@ -795,16 +876,22 @@ const (
|
||||||
IP_DUMMYNET_DEL = 0x3d
|
IP_DUMMYNET_DEL = 0x3d
|
||||||
IP_DUMMYNET_FLUSH = 0x3e
|
IP_DUMMYNET_FLUSH = 0x3e
|
||||||
IP_DUMMYNET_GET = 0x40
|
IP_DUMMYNET_GET = 0x40
|
||||||
IP_FAITH = 0x16
|
|
||||||
IP_FW_ADD = 0x32
|
IP_FW_ADD = 0x32
|
||||||
IP_FW_DEL = 0x33
|
IP_FW_DEL = 0x33
|
||||||
IP_FW_FLUSH = 0x34
|
IP_FW_FLUSH = 0x34
|
||||||
IP_FW_GET = 0x36
|
IP_FW_GET = 0x36
|
||||||
IP_FW_RESETLOG = 0x37
|
IP_FW_RESETLOG = 0x37
|
||||||
|
IP_FW_TBL_ADD = 0x2a
|
||||||
|
IP_FW_TBL_CREATE = 0x28
|
||||||
|
IP_FW_TBL_DEL = 0x2b
|
||||||
|
IP_FW_TBL_DESTROY = 0x29
|
||||||
|
IP_FW_TBL_EXPIRE = 0x2f
|
||||||
|
IP_FW_TBL_FLUSH = 0x2c
|
||||||
|
IP_FW_TBL_GET = 0x2d
|
||||||
|
IP_FW_TBL_ZERO = 0x2e
|
||||||
IP_FW_X = 0x31
|
IP_FW_X = 0x31
|
||||||
IP_FW_ZERO = 0x35
|
IP_FW_ZERO = 0x35
|
||||||
IP_HDRINCL = 0x2
|
IP_HDRINCL = 0x2
|
||||||
IP_IPSEC_POLICY = 0x15
|
|
||||||
IP_MAXPACKET = 0xffff
|
IP_MAXPACKET = 0xffff
|
||||||
IP_MAX_MEMBERSHIPS = 0x14
|
IP_MAX_MEMBERSHIPS = 0x14
|
||||||
IP_MF = 0x2000
|
IP_MF = 0x2000
|
||||||
|
@ -1080,12 +1167,10 @@ const (
|
||||||
RTM_MISS = 0x7
|
RTM_MISS = 0x7
|
||||||
RTM_NEWADDR = 0xc
|
RTM_NEWADDR = 0xc
|
||||||
RTM_NEWMADDR = 0xf
|
RTM_NEWMADDR = 0xf
|
||||||
RTM_OLDADD = 0x9
|
|
||||||
RTM_OLDDEL = 0xa
|
|
||||||
RTM_REDIRECT = 0x6
|
RTM_REDIRECT = 0x6
|
||||||
RTM_RESOLVE = 0xb
|
RTM_RESOLVE = 0xb
|
||||||
RTM_RTTUNIT = 0xf4240
|
RTM_RTTUNIT = 0xf4240
|
||||||
RTM_VERSION = 0x6
|
RTM_VERSION = 0x7
|
||||||
RTV_EXPIRE = 0x4
|
RTV_EXPIRE = 0x4
|
||||||
RTV_HOPCOUNT = 0x2
|
RTV_HOPCOUNT = 0x2
|
||||||
RTV_IWCAPSEGS = 0x400
|
RTV_IWCAPSEGS = 0x400
|
||||||
|
@ -1106,13 +1191,13 @@ const (
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
SIOCADDMULTI = 0x80206931
|
SIOCADDMULTI = 0x80206931
|
||||||
SIOCADDRT = 0x8040720a
|
|
||||||
SIOCAIFADDR = 0x8040691a
|
SIOCAIFADDR = 0x8040691a
|
||||||
|
SIOCAIFGROUP = 0x80286987
|
||||||
SIOCALIFADDR = 0x8118691b
|
SIOCALIFADDR = 0x8118691b
|
||||||
SIOCATMARK = 0x40047307
|
SIOCATMARK = 0x40047307
|
||||||
SIOCDELMULTI = 0x80206932
|
SIOCDELMULTI = 0x80206932
|
||||||
SIOCDELRT = 0x8040720b
|
|
||||||
SIOCDIFADDR = 0x80206919
|
SIOCDIFADDR = 0x80206919
|
||||||
|
SIOCDIFGROUP = 0x80286989
|
||||||
SIOCDIFPHYADDR = 0x80206949
|
SIOCDIFPHYADDR = 0x80206949
|
||||||
SIOCDLIFADDR = 0x8118691d
|
SIOCDLIFADDR = 0x8118691d
|
||||||
SIOCGDRVSPEC = 0xc028697b
|
SIOCGDRVSPEC = 0xc028697b
|
||||||
|
@ -1120,6 +1205,7 @@ const (
|
||||||
SIOCGETVIFCNT = 0xc028720f
|
SIOCGETVIFCNT = 0xc028720f
|
||||||
SIOCGHIWAT = 0x40047301
|
SIOCGHIWAT = 0x40047301
|
||||||
SIOCGIFADDR = 0xc0206921
|
SIOCGIFADDR = 0xc0206921
|
||||||
|
SIOCGIFALIAS = 0xc0406929
|
||||||
SIOCGIFBRDADDR = 0xc0206923
|
SIOCGIFBRDADDR = 0xc0206923
|
||||||
SIOCGIFCAP = 0xc020691f
|
SIOCGIFCAP = 0xc020691f
|
||||||
SIOCGIFCONF = 0xc0106924
|
SIOCGIFCONF = 0xc0106924
|
||||||
|
@ -1128,6 +1214,7 @@ const (
|
||||||
SIOCGIFFLAGS = 0xc0206911
|
SIOCGIFFLAGS = 0xc0206911
|
||||||
SIOCGIFGENERIC = 0xc020693a
|
SIOCGIFGENERIC = 0xc020693a
|
||||||
SIOCGIFGMEMB = 0xc028698a
|
SIOCGIFGMEMB = 0xc028698a
|
||||||
|
SIOCGIFGROUP = 0xc0286988
|
||||||
SIOCGIFINDEX = 0xc0206920
|
SIOCGIFINDEX = 0xc0206920
|
||||||
SIOCGIFMEDIA = 0xc0306938
|
SIOCGIFMEDIA = 0xc0306938
|
||||||
SIOCGIFMETRIC = 0xc0206917
|
SIOCGIFMETRIC = 0xc0206917
|
||||||
|
@ -1194,6 +1281,7 @@ const (
|
||||||
SO_RCVBUF = 0x1002
|
SO_RCVBUF = 0x1002
|
||||||
SO_RCVLOWAT = 0x1004
|
SO_RCVLOWAT = 0x1004
|
||||||
SO_RCVTIMEO = 0x1006
|
SO_RCVTIMEO = 0x1006
|
||||||
|
SO_RERROR = 0x2000
|
||||||
SO_REUSEADDR = 0x4
|
SO_REUSEADDR = 0x4
|
||||||
SO_REUSEPORT = 0x200
|
SO_REUSEPORT = 0x200
|
||||||
SO_SNDBUF = 0x1001
|
SO_SNDBUF = 0x1001
|
||||||
|
@ -1233,6 +1321,9 @@ const (
|
||||||
S_IXGRP = 0x8
|
S_IXGRP = 0x8
|
||||||
S_IXOTH = 0x1
|
S_IXOTH = 0x1
|
||||||
S_IXUSR = 0x40
|
S_IXUSR = 0x40
|
||||||
|
TAB0 = 0x0
|
||||||
|
TAB3 = 0x4
|
||||||
|
TABDLY = 0x4
|
||||||
TCIFLUSH = 0x1
|
TCIFLUSH = 0x1
|
||||||
TCIOFF = 0x3
|
TCIOFF = 0x3
|
||||||
TCIOFLUSH = 0x3
|
TCIOFLUSH = 0x3
|
||||||
|
@ -1259,6 +1350,8 @@ const (
|
||||||
TCP_NOPUSH = 0x4
|
TCP_NOPUSH = 0x4
|
||||||
TCP_SIGNATURE_ENABLE = 0x10
|
TCP_SIGNATURE_ENABLE = 0x10
|
||||||
TCSAFLUSH = 0x2
|
TCSAFLUSH = 0x2
|
||||||
|
TIMER_ABSTIME = 0x1
|
||||||
|
TIMER_RELTIME = 0x0
|
||||||
TIOCCBRK = 0x2000747a
|
TIOCCBRK = 0x2000747a
|
||||||
TIOCCDTR = 0x20007478
|
TIOCCDTR = 0x20007478
|
||||||
TIOCCONS = 0x80047462
|
TIOCCONS = 0x80047462
|
||||||
|
@ -1272,7 +1365,6 @@ const (
|
||||||
TIOCGETD = 0x4004741a
|
TIOCGETD = 0x4004741a
|
||||||
TIOCGPGRP = 0x40047477
|
TIOCGPGRP = 0x40047477
|
||||||
TIOCGSID = 0x40047463
|
TIOCGSID = 0x40047463
|
||||||
TIOCGSIZE = 0x40087468
|
|
||||||
TIOCGWINSZ = 0x40087468
|
TIOCGWINSZ = 0x40087468
|
||||||
TIOCISPTMASTER = 0x20007455
|
TIOCISPTMASTER = 0x20007455
|
||||||
TIOCMBIC = 0x8004746b
|
TIOCMBIC = 0x8004746b
|
||||||
|
@ -1317,7 +1409,6 @@ const (
|
||||||
TIOCSETD = 0x8004741b
|
TIOCSETD = 0x8004741b
|
||||||
TIOCSIG = 0x2000745f
|
TIOCSIG = 0x2000745f
|
||||||
TIOCSPGRP = 0x80047476
|
TIOCSPGRP = 0x80047476
|
||||||
TIOCSSIZE = 0x80087467
|
|
||||||
TIOCSTART = 0x2000746e
|
TIOCSTART = 0x2000746e
|
||||||
TIOCSTAT = 0x20007465
|
TIOCSTAT = 0x20007465
|
||||||
TIOCSTI = 0x80017472
|
TIOCSTI = 0x80017472
|
||||||
|
@ -1326,6 +1417,8 @@ const (
|
||||||
TIOCTIMESTAMP = 0x40107459
|
TIOCTIMESTAMP = 0x40107459
|
||||||
TIOCUCNTL = 0x80047466
|
TIOCUCNTL = 0x80047466
|
||||||
TOSTOP = 0x400000
|
TOSTOP = 0x400000
|
||||||
|
UTIME_NOW = -0x1
|
||||||
|
UTIME_OMIT = -0x2
|
||||||
VCHECKPT = 0x13
|
VCHECKPT = 0x13
|
||||||
VDISCARD = 0xf
|
VDISCARD = 0xf
|
||||||
VDSUSP = 0xb
|
VDSUSP = 0xb
|
||||||
|
@ -1350,9 +1443,12 @@ const (
|
||||||
VWERASE = 0x4
|
VWERASE = 0x4
|
||||||
WCONTINUED = 0x4
|
WCONTINUED = 0x4
|
||||||
WCOREFLAG = 0x80
|
WCOREFLAG = 0x80
|
||||||
|
WEXITED = 0x10
|
||||||
WLINUXCLONE = 0x80000000
|
WLINUXCLONE = 0x80000000
|
||||||
WNOHANG = 0x1
|
WNOHANG = 0x1
|
||||||
WSTOPPED = 0x7f
|
WNOWAIT = 0x8
|
||||||
|
WSTOPPED = 0x2
|
||||||
|
WTRAPPED = 0x20
|
||||||
WUNTRACED = 0x2
|
WUNTRACED = 0x2
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1452,11 +1548,6 @@ const (
|
||||||
ETIMEDOUT = syscall.Errno(0x3c)
|
ETIMEDOUT = syscall.Errno(0x3c)
|
||||||
ETOOMANYREFS = syscall.Errno(0x3b)
|
ETOOMANYREFS = syscall.Errno(0x3b)
|
||||||
ETXTBSY = syscall.Errno(0x1a)
|
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)
|
EUSERS = syscall.Errno(0x44)
|
||||||
EWOULDBLOCK = syscall.Errno(0x23)
|
EWOULDBLOCK = syscall.Errno(0x23)
|
||||||
EXDEV = syscall.Errno(0x12)
|
EXDEV = syscall.Errno(0x12)
|
||||||
|
@ -1600,12 +1691,7 @@ var errorList = [...]struct {
|
||||||
{91, "ENOLINK", "link has been severed"},
|
{91, "ENOLINK", "link has been severed"},
|
||||||
{92, "EPROTO", "protocol error"},
|
{92, "EPROTO", "protocol error"},
|
||||||
{93, "ENOMEDIUM", "no medium found"},
|
{93, "ENOMEDIUM", "no medium found"},
|
||||||
{94, "EUNUSED94", "unknown error: 94"},
|
{99, "EASYNC", "unknown error: 99"},
|
||||||
{95, "EUNUSED95", "unknown error: 95"},
|
|
||||||
{96, "EUNUSED96", "unknown error: 96"},
|
|
||||||
{97, "EUNUSED97", "unknown error: 97"},
|
|
||||||
{98, "EUNUSED98", "unknown error: 98"},
|
|
||||||
{99, "ELAST", "unknown error: 99"},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Signal table
|
// Signal table
|
||||||
|
|
32
vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go
generated
vendored
32
vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go
generated
vendored
|
@ -214,22 +214,6 @@ func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, ne
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func 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) {
|
func utimes(path string, timeval *[2]Timeval) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
@ -439,6 +423,22 @@ func ioctl(fd int, req uint, arg uintptr) (err error) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func 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 Access(path string, mode uint32) (err error) {
|
func Access(path string, mode uint32) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
|
255
vendor/golang.org/x/sys/unix/zsysnum_dragonfly_amd64.go
generated
vendored
255
vendor/golang.org/x/sys/unix/zsysnum_dragonfly_amd64.go
generated
vendored
|
@ -6,129 +6,125 @@
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// SYS_NOSYS = 0; // { int nosys(void); } syscall nosys_args int
|
SYS_EXIT = 1 // { void exit(int rval); }
|
||||||
SYS_EXIT = 1 // { void exit(int rval); }
|
SYS_FORK = 2 // { int fork(void); }
|
||||||
SYS_FORK = 2 // { int fork(void); }
|
SYS_READ = 3 // { ssize_t read(int fd, void *buf, size_t nbyte); }
|
||||||
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_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_OPEN = 5 // { int open(char *path, int flags, int mode); }
|
SYS_CLOSE = 6 // { int close(int fd); }
|
||||||
SYS_CLOSE = 6 // { int close(int fd); }
|
SYS_WAIT4 = 7 // { int wait4(int pid, int *status, int options, struct rusage *rusage); } wait4 wait_args int
|
||||||
SYS_WAIT4 = 7 // { int wait4(int pid, int *status, int options, struct rusage *rusage); } wait4 wait_args int
|
// SYS_NOSYS = 8; // { int nosys(void); } __nosys nosys_args int
|
||||||
SYS_LINK = 9 // { int link(char *path, char *link); }
|
SYS_LINK = 9 // { int link(char *path, char *link); }
|
||||||
SYS_UNLINK = 10 // { int unlink(char *path); }
|
SYS_UNLINK = 10 // { int unlink(char *path); }
|
||||||
SYS_CHDIR = 12 // { int chdir(char *path); }
|
SYS_CHDIR = 12 // { int chdir(char *path); }
|
||||||
SYS_FCHDIR = 13 // { int fchdir(int fd); }
|
SYS_FCHDIR = 13 // { int fchdir(int fd); }
|
||||||
SYS_MKNOD = 14 // { int mknod(char *path, int mode, int dev); }
|
SYS_MKNOD = 14 // { int mknod(char *path, int mode, int dev); }
|
||||||
SYS_CHMOD = 15 // { int chmod(char *path, int mode); }
|
SYS_CHMOD = 15 // { int chmod(char *path, int mode); }
|
||||||
SYS_CHOWN = 16 // { int chown(char *path, int uid, int gid); }
|
SYS_CHOWN = 16 // { int chown(char *path, int uid, int gid); }
|
||||||
SYS_OBREAK = 17 // { int obreak(char *nsize); } break obreak_args int
|
SYS_OBREAK = 17 // { int obreak(char *nsize); } break obreak_args int
|
||||||
SYS_GETFSSTAT = 18 // { int getfsstat(struct statfs *buf, long bufsize, int flags); }
|
SYS_GETFSSTAT = 18 // { int getfsstat(struct statfs *buf, long bufsize, int flags); }
|
||||||
SYS_GETPID = 20 // { pid_t getpid(void); }
|
SYS_GETPID = 20 // { pid_t getpid(void); }
|
||||||
SYS_MOUNT = 21 // { int mount(char *type, char *path, int flags, caddr_t data); }
|
SYS_MOUNT = 21 // { int mount(char *type, char *path, int flags, caddr_t data); }
|
||||||
SYS_UNMOUNT = 22 // { int unmount(char *path, int flags); }
|
SYS_UNMOUNT = 22 // { int unmount(char *path, int flags); }
|
||||||
SYS_SETUID = 23 // { int setuid(uid_t uid); }
|
SYS_SETUID = 23 // { int setuid(uid_t uid); }
|
||||||
SYS_GETUID = 24 // { uid_t getuid(void); }
|
SYS_GETUID = 24 // { uid_t getuid(void); }
|
||||||
SYS_GETEUID = 25 // { uid_t geteuid(void); }
|
SYS_GETEUID = 25 // { uid_t geteuid(void); }
|
||||||
SYS_PTRACE = 26 // { int ptrace(int req, pid_t pid, caddr_t addr, int data); }
|
SYS_PTRACE = 26 // { int ptrace(int req, pid_t pid, caddr_t addr, int data); }
|
||||||
SYS_RECVMSG = 27 // { int recvmsg(int s, struct msghdr *msg, int flags); }
|
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_SENDMSG = 28 // { int sendmsg(int s, caddr_t msg, int flags); }
|
||||||
SYS_RECVFROM = 29 // { int recvfrom(int s, caddr_t buf, size_t len, int flags, caddr_t from, int *fromlenaddr); }
|
SYS_RECVFROM = 29 // { int recvfrom(int s, caddr_t buf, size_t len, int flags, caddr_t from, int *fromlenaddr); }
|
||||||
SYS_ACCEPT = 30 // { int accept(int s, caddr_t name, int *anamelen); }
|
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_GETPEERNAME = 31 // { int getpeername(int fdes, caddr_t asa, int *alen); }
|
||||||
SYS_GETSOCKNAME = 32 // { int getsockname(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_ACCESS = 33 // { int access(char *path, int flags); }
|
||||||
SYS_CHFLAGS = 34 // { int chflags(char *path, int flags); }
|
SYS_CHFLAGS = 34 // { int chflags(const char *path, u_long flags); }
|
||||||
SYS_FCHFLAGS = 35 // { int fchflags(int fd, int flags); }
|
SYS_FCHFLAGS = 35 // { int fchflags(int fd, u_long flags); }
|
||||||
SYS_SYNC = 36 // { int sync(void); }
|
SYS_SYNC = 36 // { int sync(void); }
|
||||||
SYS_KILL = 37 // { int kill(int pid, int signum); }
|
SYS_KILL = 37 // { int kill(int pid, int signum); }
|
||||||
SYS_GETPPID = 39 // { pid_t getppid(void); }
|
SYS_GETPPID = 39 // { pid_t getppid(void); }
|
||||||
SYS_DUP = 41 // { int dup(int fd); }
|
SYS_DUP = 41 // { int dup(int fd); }
|
||||||
SYS_PIPE = 42 // { int pipe(void); }
|
SYS_PIPE = 42 // { int pipe(void); }
|
||||||
SYS_GETEGID = 43 // { gid_t getegid(void); }
|
SYS_GETEGID = 43 // { gid_t getegid(void); }
|
||||||
SYS_PROFIL = 44 // { int profil(caddr_t samples, size_t size, size_t offset, u_int scale); }
|
SYS_PROFIL = 44 // { int profil(caddr_t samples, size_t size, u_long offset, u_int scale); }
|
||||||
SYS_KTRACE = 45 // { int ktrace(const char *fname, int ops, int facs, int pid); }
|
SYS_KTRACE = 45 // { int ktrace(const char *fname, int ops, int facs, int pid); }
|
||||||
SYS_GETGID = 47 // { gid_t getgid(void); }
|
SYS_GETGID = 47 // { gid_t getgid(void); }
|
||||||
SYS_GETLOGIN = 49 // { int getlogin(char *namebuf, u_int namelen); }
|
SYS_GETLOGIN = 49 // { int getlogin(char *namebuf, size_t namelen); }
|
||||||
SYS_SETLOGIN = 50 // { int setlogin(char *namebuf); }
|
SYS_SETLOGIN = 50 // { int setlogin(char *namebuf); }
|
||||||
SYS_ACCT = 51 // { int acct(char *path); }
|
SYS_ACCT = 51 // { int acct(char *path); }
|
||||||
SYS_SIGALTSTACK = 53 // { int sigaltstack(stack_t *ss, stack_t *oss); }
|
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_IOCTL = 54 // { int ioctl(int fd, u_long com, caddr_t data); }
|
||||||
SYS_REBOOT = 55 // { int reboot(int opt); }
|
SYS_REBOOT = 55 // { int reboot(int opt); }
|
||||||
SYS_REVOKE = 56 // { int revoke(char *path); }
|
SYS_REVOKE = 56 // { int revoke(char *path); }
|
||||||
SYS_SYMLINK = 57 // { int symlink(char *path, char *link); }
|
SYS_SYMLINK = 57 // { int symlink(char *path, char *link); }
|
||||||
SYS_READLINK = 58 // { int readlink(char *path, char *buf, int count); }
|
SYS_READLINK = 58 // { int readlink(char *path, char *buf, int count); }
|
||||||
SYS_EXECVE = 59 // { int execve(char *fname, char **argv, char **envv); }
|
SYS_EXECVE = 59 // { int execve(char *fname, char **argv, char **envv); }
|
||||||
SYS_UMASK = 60 // { int umask(int newmask); } umask umask_args int
|
SYS_UMASK = 60 // { int umask(int newmask); } umask umask_args int
|
||||||
SYS_CHROOT = 61 // { int chroot(char *path); }
|
SYS_CHROOT = 61 // { int chroot(char *path); }
|
||||||
SYS_MSYNC = 65 // { int msync(void *addr, size_t len, int flags); }
|
SYS_MSYNC = 65 // { int msync(void *addr, size_t len, int flags); }
|
||||||
SYS_VFORK = 66 // { pid_t vfork(void); }
|
SYS_VFORK = 66 // { pid_t vfork(void); }
|
||||||
SYS_SBRK = 69 // { int sbrk(int incr); }
|
SYS_SBRK = 69 // { caddr_t sbrk(size_t incr); }
|
||||||
SYS_SSTK = 70 // { int sstk(int incr); }
|
SYS_SSTK = 70 // { int sstk(size_t incr); }
|
||||||
SYS_MUNMAP = 73 // { int munmap(void *addr, size_t len); }
|
SYS_MUNMAP = 73 // { int munmap(void *addr, size_t len); }
|
||||||
SYS_MPROTECT = 74 // { int mprotect(void *addr, size_t len, int prot); }
|
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_MADVISE = 75 // { int madvise(void *addr, size_t len, int behav); }
|
||||||
SYS_MINCORE = 78 // { int mincore(const void *addr, size_t len, char *vec); }
|
SYS_MINCORE = 78 // { int mincore(const void *addr, size_t len, char *vec); }
|
||||||
SYS_GETGROUPS = 79 // { int getgroups(u_int gidsetsize, gid_t *gidset); }
|
SYS_GETGROUPS = 79 // { int getgroups(u_int gidsetsize, gid_t *gidset); }
|
||||||
SYS_SETGROUPS = 80 // { int setgroups(u_int gidsetsize, gid_t *gidset); }
|
SYS_SETGROUPS = 80 // { int setgroups(u_int gidsetsize, gid_t *gidset); }
|
||||||
SYS_GETPGRP = 81 // { int getpgrp(void); }
|
SYS_GETPGRP = 81 // { int getpgrp(void); }
|
||||||
SYS_SETPGID = 82 // { int setpgid(int pid, int pgid); }
|
SYS_SETPGID = 82 // { int setpgid(int pid, int pgid); }
|
||||||
SYS_SETITIMER = 83 // { int setitimer(u_int which, struct itimerval *itv, struct itimerval *oitv); }
|
SYS_SETITIMER = 83 // { int setitimer(u_int which, struct itimerval *itv, struct itimerval *oitv); }
|
||||||
SYS_SWAPON = 85 // { int swapon(char *name); }
|
SYS_SWAPON = 85 // { int swapon(char *name); }
|
||||||
SYS_GETITIMER = 86 // { int getitimer(u_int which, struct itimerval *itv); }
|
SYS_GETITIMER = 86 // { int getitimer(u_int which, struct itimerval *itv); }
|
||||||
SYS_GETDTABLESIZE = 89 // { int getdtablesize(void); }
|
SYS_GETDTABLESIZE = 89 // { int getdtablesize(void); }
|
||||||
SYS_DUP2 = 90 // { int dup2(int from, int to); }
|
SYS_DUP2 = 90 // { int dup2(int from, int to); }
|
||||||
SYS_FCNTL = 92 // { int fcntl(int fd, int cmd, long arg); }
|
SYS_FCNTL = 92 // { int fcntl(int fd, int cmd, long arg); }
|
||||||
SYS_SELECT = 93 // { int select(int nd, fd_set *in, fd_set *ou, fd_set *ex, struct timeval *tv); }
|
SYS_SELECT = 93 // { int select(int nd, fd_set *in, fd_set *ou, fd_set *ex, struct timeval *tv); }
|
||||||
SYS_FSYNC = 95 // { int fsync(int fd); }
|
SYS_FSYNC = 95 // { int fsync(int fd); }
|
||||||
SYS_SETPRIORITY = 96 // { int setpriority(int which, int who, int prio); }
|
SYS_SETPRIORITY = 96 // { int setpriority(int which, int who, int prio); }
|
||||||
SYS_SOCKET = 97 // { int socket(int domain, int type, int protocol); }
|
SYS_SOCKET = 97 // { int socket(int domain, int type, int protocol); }
|
||||||
SYS_CONNECT = 98 // { int connect(int s, caddr_t name, int namelen); }
|
SYS_CONNECT = 98 // { int connect(int s, caddr_t name, int namelen); }
|
||||||
SYS_GETPRIORITY = 100 // { int getpriority(int which, int who); }
|
SYS_GETPRIORITY = 100 // { int getpriority(int which, int who); }
|
||||||
SYS_BIND = 104 // { int bind(int s, caddr_t name, int namelen); }
|
SYS_BIND = 104 // { int bind(int s, caddr_t name, int namelen); }
|
||||||
SYS_SETSOCKOPT = 105 // { int setsockopt(int s, int level, int name, caddr_t val, int valsize); }
|
SYS_SETSOCKOPT = 105 // { int setsockopt(int s, int level, int name, caddr_t val, int valsize); }
|
||||||
SYS_LISTEN = 106 // { int listen(int s, int backlog); }
|
SYS_LISTEN = 106 // { int listen(int s, int backlog); }
|
||||||
SYS_GETTIMEOFDAY = 116 // { int gettimeofday(struct timeval *tp, struct timezone *tzp); }
|
SYS_GETTIMEOFDAY = 116 // { int gettimeofday(struct timeval *tp, struct timezone *tzp); }
|
||||||
SYS_GETRUSAGE = 117 // { int getrusage(int who, struct rusage *rusage); }
|
SYS_GETRUSAGE = 117 // { int getrusage(int who, struct rusage *rusage); }
|
||||||
SYS_GETSOCKOPT = 118 // { int getsockopt(int s, int level, int name, caddr_t val, int *avalsize); }
|
SYS_GETSOCKOPT = 118 // { int getsockopt(int s, int level, int name, caddr_t val, int *avalsize); }
|
||||||
SYS_READV = 120 // { int readv(int fd, struct iovec *iovp, u_int iovcnt); }
|
SYS_READV = 120 // { int readv(int fd, struct iovec *iovp, u_int iovcnt); }
|
||||||
SYS_WRITEV = 121 // { int writev(int fd, struct iovec *iovp, u_int iovcnt); }
|
SYS_WRITEV = 121 // { int writev(int fd, struct iovec *iovp, u_int iovcnt); }
|
||||||
SYS_SETTIMEOFDAY = 122 // { int settimeofday(struct timeval *tv, struct timezone *tzp); }
|
SYS_SETTIMEOFDAY = 122 // { int settimeofday(struct timeval *tv, struct timezone *tzp); }
|
||||||
SYS_FCHOWN = 123 // { int fchown(int fd, int uid, int gid); }
|
SYS_FCHOWN = 123 // { int fchown(int fd, int uid, int gid); }
|
||||||
SYS_FCHMOD = 124 // { int fchmod(int fd, int mode); }
|
SYS_FCHMOD = 124 // { int fchmod(int fd, int mode); }
|
||||||
SYS_SETREUID = 126 // { int setreuid(int ruid, int euid); }
|
SYS_SETREUID = 126 // { int setreuid(int ruid, int euid); }
|
||||||
SYS_SETREGID = 127 // { int setregid(int rgid, int egid); }
|
SYS_SETREGID = 127 // { int setregid(int rgid, int egid); }
|
||||||
SYS_RENAME = 128 // { int rename(char *from, char *to); }
|
SYS_RENAME = 128 // { int rename(char *from, char *to); }
|
||||||
SYS_FLOCK = 131 // { int flock(int fd, int how); }
|
SYS_FLOCK = 131 // { int flock(int fd, int how); }
|
||||||
SYS_MKFIFO = 132 // { int mkfifo(char *path, int mode); }
|
SYS_MKFIFO = 132 // { int mkfifo(char *path, int mode); }
|
||||||
SYS_SENDTO = 133 // { int sendto(int s, caddr_t buf, size_t len, int flags, caddr_t to, int tolen); }
|
SYS_SENDTO = 133 // { int sendto(int s, caddr_t buf, size_t len, int flags, caddr_t to, int tolen); }
|
||||||
SYS_SHUTDOWN = 134 // { int shutdown(int s, int how); }
|
SYS_SHUTDOWN = 134 // { int shutdown(int s, int how); }
|
||||||
SYS_SOCKETPAIR = 135 // { int socketpair(int domain, int type, int protocol, int *rsv); }
|
SYS_SOCKETPAIR = 135 // { int socketpair(int domain, int type, int protocol, int *rsv); }
|
||||||
SYS_MKDIR = 136 // { int mkdir(char *path, int mode); }
|
SYS_MKDIR = 136 // { int mkdir(char *path, int mode); }
|
||||||
SYS_RMDIR = 137 // { int rmdir(char *path); }
|
SYS_RMDIR = 137 // { int rmdir(char *path); }
|
||||||
SYS_UTIMES = 138 // { int utimes(char *path, struct timeval *tptr); }
|
SYS_UTIMES = 138 // { int utimes(char *path, struct timeval *tptr); }
|
||||||
SYS_ADJTIME = 140 // { int adjtime(struct timeval *delta, struct timeval *olddelta); }
|
SYS_ADJTIME = 140 // { int adjtime(struct timeval *delta, struct timeval *olddelta); }
|
||||||
SYS_SETSID = 147 // { int setsid(void); }
|
SYS_SETSID = 147 // { int setsid(void); }
|
||||||
SYS_QUOTACTL = 148 // { int quotactl(char *path, int cmd, int uid, caddr_t arg); }
|
SYS_QUOTACTL = 148 // { int quotactl(char *path, int cmd, int uid, caddr_t arg); }
|
||||||
SYS_STATFS = 157 // { int statfs(char *path, struct statfs *buf); }
|
SYS_STATFS = 157 // { int statfs(char *path, struct statfs *buf); }
|
||||||
SYS_FSTATFS = 158 // { int fstatfs(int fd, struct statfs *buf); }
|
SYS_FSTATFS = 158 // { int fstatfs(int fd, struct statfs *buf); }
|
||||||
SYS_GETFH = 161 // { int getfh(char *fname, struct fhandle *fhp); }
|
SYS_GETFH = 161 // { int getfh(char *fname, struct fhandle *fhp); }
|
||||||
SYS_GETDOMAINNAME = 162 // { int getdomainname(char *domainname, int len); }
|
SYS_SYSARCH = 165 // { int sysarch(int op, char *parms); }
|
||||||
SYS_SETDOMAINNAME = 163 // { int setdomainname(char *domainname, int len); }
|
SYS_RTPRIO = 166 // { int rtprio(int function, pid_t pid, struct rtprio *rtp); }
|
||||||
SYS_UNAME = 164 // { int uname(struct utsname *name); }
|
SYS_EXTPREAD = 173 // { ssize_t extpread(int fd, void *buf, size_t nbyte, int flags, off_t offset); }
|
||||||
SYS_SYSARCH = 165 // { int sysarch(int op, char *parms); }
|
SYS_EXTPWRITE = 174 // { ssize_t extpwrite(int fd, const void *buf, size_t nbyte, int flags, off_t offset); }
|
||||||
SYS_RTPRIO = 166 // { int rtprio(int function, pid_t pid, struct rtprio *rtp); }
|
SYS_NTP_ADJTIME = 176 // { int ntp_adjtime(struct timex *tp); }
|
||||||
SYS_EXTPREAD = 173 // { ssize_t extpread(int fd, void *buf, size_t nbyte, int flags, off_t offset); }
|
SYS_SETGID = 181 // { int setgid(gid_t gid); }
|
||||||
SYS_EXTPWRITE = 174 // { ssize_t extpwrite(int fd, const void *buf, size_t nbyte, int flags, off_t offset); }
|
SYS_SETEGID = 182 // { int setegid(gid_t egid); }
|
||||||
SYS_NTP_ADJTIME = 176 // { int ntp_adjtime(struct timex *tp); }
|
SYS_SETEUID = 183 // { int seteuid(uid_t euid); }
|
||||||
SYS_SETGID = 181 // { int setgid(gid_t gid); }
|
SYS_PATHCONF = 191 // { int pathconf(char *path, int name); }
|
||||||
SYS_SETEGID = 182 // { int setegid(gid_t egid); }
|
SYS_FPATHCONF = 192 // { int fpathconf(int fd, int name); }
|
||||||
SYS_SETEUID = 183 // { int seteuid(uid_t euid); }
|
SYS_GETRLIMIT = 194 // { int getrlimit(u_int which, struct rlimit *rlp); } getrlimit __getrlimit_args int
|
||||||
SYS_PATHCONF = 191 // { int pathconf(char *path, int name); }
|
SYS_SETRLIMIT = 195 // { int setrlimit(u_int which, struct rlimit *rlp); } setrlimit __setrlimit_args int
|
||||||
SYS_FPATHCONF = 192 // { int fpathconf(int fd, int name); }
|
SYS_MMAP = 197 // { caddr_t mmap(caddr_t addr, size_t len, int prot, int flags, int fd, int pad, off_t pos); }
|
||||||
SYS_GETRLIMIT = 194 // { int getrlimit(u_int which, struct rlimit *rlp); } getrlimit __getrlimit_args int
|
|
||||||
SYS_SETRLIMIT = 195 // { int setrlimit(u_int which, struct rlimit *rlp); } setrlimit __setrlimit_args int
|
|
||||||
SYS_MMAP = 197 // { caddr_t mmap(caddr_t addr, size_t len, int prot, int flags, int fd, int pad, off_t pos); }
|
|
||||||
// SYS_NOSYS = 198; // { int nosys(void); } __syscall __syscall_args int
|
|
||||||
SYS_LSEEK = 199 // { off_t lseek(int fd, int pad, off_t offset, int whence); }
|
SYS_LSEEK = 199 // { off_t lseek(int fd, int pad, off_t offset, int whence); }
|
||||||
SYS_TRUNCATE = 200 // { int truncate(char *path, int pad, off_t length); }
|
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_FTRUNCATE = 201 // { int ftruncate(int fd, int pad, off_t length); }
|
||||||
|
@ -161,8 +157,8 @@ const (
|
||||||
SYS_LCHOWN = 254 // { int lchown(char *path, int uid, int gid); }
|
SYS_LCHOWN = 254 // { int lchown(char *path, int uid, int gid); }
|
||||||
SYS_LCHMOD = 274 // { int lchmod(char *path, mode_t mode); }
|
SYS_LCHMOD = 274 // { int lchmod(char *path, mode_t mode); }
|
||||||
SYS_LUTIMES = 276 // { int lutimes(char *path, struct timeval *tptr); }
|
SYS_LUTIMES = 276 // { int lutimes(char *path, struct timeval *tptr); }
|
||||||
SYS_EXTPREADV = 289 // { ssize_t extpreadv(int fd, struct iovec *iovp, u_int iovcnt, int flags, off_t offset); }
|
SYS_EXTPREADV = 289 // { ssize_t extpreadv(int fd, const struct iovec *iovp, int iovcnt, int flags, off_t offset); }
|
||||||
SYS_EXTPWRITEV = 290 // { ssize_t extpwritev(int fd, struct iovec *iovp,u_int iovcnt, int flags, off_t offset); }
|
SYS_EXTPWRITEV = 290 // { ssize_t extpwritev(int fd, const struct iovec *iovp, int iovcnt, int flags, off_t offset); }
|
||||||
SYS_FHSTATFS = 297 // { int fhstatfs(const struct fhandle *u_fhp, struct statfs *buf); }
|
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_FHOPEN = 298 // { int fhopen(const struct fhandle *u_fhp, int flags); }
|
||||||
SYS_MODNEXT = 300 // { int modnext(int modid); }
|
SYS_MODNEXT = 300 // { int modnext(int modid); }
|
||||||
|
@ -225,7 +221,7 @@ const (
|
||||||
SYS_KQUEUE = 362 // { int kqueue(void); }
|
SYS_KQUEUE = 362 // { int kqueue(void); }
|
||||||
SYS_KEVENT = 363 // { int kevent(int fd, const struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); }
|
SYS_KEVENT = 363 // { int kevent(int fd, const struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); }
|
||||||
SYS_KENV = 390 // { int kenv(int what, const char *name, char *value, int len); }
|
SYS_KENV = 390 // { int kenv(int what, const char *name, char *value, int len); }
|
||||||
SYS_LCHFLAGS = 391 // { int lchflags(char *path, int flags); }
|
SYS_LCHFLAGS = 391 // { int lchflags(const char *path, u_long flags); }
|
||||||
SYS_UUIDGEN = 392 // { int uuidgen(struct uuid *store, int count); }
|
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, struct sf_hdtr *hdtr, off_t *sbytes, int flags); }
|
SYS_SENDFILE = 393 // { int sendfile(int fd, int s, off_t offset, size_t nbytes, struct sf_hdtr *hdtr, off_t *sbytes, int flags); }
|
||||||
SYS_VARSYM_SET = 450 // { int varsym_set(int level, const char *name, const char *data); }
|
SYS_VARSYM_SET = 450 // { int varsym_set(int level, const char *name, const char *data); }
|
||||||
|
@ -302,7 +298,7 @@ const (
|
||||||
SYS_VMM_GUEST_CTL = 534 // { int vmm_guest_ctl(int op, struct vmm_guest_options *options); }
|
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_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_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_CHFLAGSAT = 537 // { int chflagsat(int fd, const char *path, u_long flags, int atflags);}
|
||||||
SYS_PIPE2 = 538 // { int pipe2(int *fildes, int flags); }
|
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_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_FUTIMENS = 540 // { int futimens(int fd, const struct timespec *ts); }
|
||||||
|
@ -312,4 +308,9 @@ const (
|
||||||
SYS_LWP_SETAFFINITY = 544 // { int lwp_setaffinity(pid_t pid, lwpid_t tid, const cpumask_t *mask); }
|
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_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); }
|
SYS_LWP_CREATE2 = 546 // { int lwp_create2(struct lwp_params *params, const cpumask_t *mask); }
|
||||||
|
SYS_GETCPUCLOCKID = 547 // { int getcpuclockid(pid_t pid, lwpid_t lwp_id, clockid_t *clock_id); }
|
||||||
|
SYS_WAIT6 = 548 // { int wait6(idtype_t idtype, id_t id, int *status, int options, struct __wrusage *wrusage, siginfo_t *info); }
|
||||||
|
SYS_LWP_GETNAME = 549 // { int lwp_getname(lwpid_t tid, char *name, size_t len); }
|
||||||
|
SYS_GETRANDOM = 550 // { ssize_t getrandom(void *buf, size_t len, unsigned flags); }
|
||||||
|
SYS___REALPATH = 551 // { ssize_t __realpath(const char *path, char *buf, size_t len); }
|
||||||
)
|
)
|
||||||
|
|
13
vendor/golang.org/x/sys/unix/ztypes_darwin_386.go
generated
vendored
13
vendor/golang.org/x/sys/unix/ztypes_darwin_386.go
generated
vendored
|
@ -92,9 +92,9 @@ type Statfs_t struct {
|
||||||
Type uint32
|
Type uint32
|
||||||
Flags uint32
|
Flags uint32
|
||||||
Fssubtype uint32
|
Fssubtype uint32
|
||||||
Fstypename [16]int8
|
Fstypename [16]byte
|
||||||
Mntonname [1024]int8
|
Mntonname [1024]byte
|
||||||
Mntfromname [1024]int8
|
Mntfromname [1024]byte
|
||||||
Reserved [8]uint32
|
Reserved [8]uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -305,7 +305,6 @@ type IfMsghdr struct {
|
||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
_ [2]byte
|
|
||||||
Data IfData
|
Data IfData
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -348,7 +347,6 @@ type IfaMsghdr struct {
|
||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
_ [2]byte
|
|
||||||
Metric int32
|
Metric int32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -369,7 +367,6 @@ type IfmaMsghdr2 struct {
|
||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
_ [2]byte
|
|
||||||
Refcount int32
|
Refcount int32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -378,7 +375,6 @@ type RtMsghdr struct {
|
||||||
Version uint8
|
Version uint8
|
||||||
Type uint8
|
Type uint8
|
||||||
Index uint16
|
Index uint16
|
||||||
_ [2]byte
|
|
||||||
Flags int32
|
Flags int32
|
||||||
Addrs int32
|
Addrs int32
|
||||||
Pid int32
|
Pid int32
|
||||||
|
@ -400,7 +396,8 @@ type RtMetrics struct {
|
||||||
Rtt uint32
|
Rtt uint32
|
||||||
Rttvar uint32
|
Rttvar uint32
|
||||||
Pksent uint32
|
Pksent uint32
|
||||||
Filler [4]uint32
|
State uint32
|
||||||
|
Filler [3]uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
24
vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go
generated
vendored
24
vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go
generated
vendored
|
@ -70,7 +70,6 @@ type Stat_t struct {
|
||||||
Uid uint32
|
Uid uint32
|
||||||
Gid uint32
|
Gid uint32
|
||||||
Rdev int32
|
Rdev int32
|
||||||
_ [4]byte
|
|
||||||
Atim Timespec
|
Atim Timespec
|
||||||
Mtim Timespec
|
Mtim Timespec
|
||||||
Ctim Timespec
|
Ctim Timespec
|
||||||
|
@ -97,10 +96,11 @@ type Statfs_t struct {
|
||||||
Type uint32
|
Type uint32
|
||||||
Flags uint32
|
Flags uint32
|
||||||
Fssubtype uint32
|
Fssubtype uint32
|
||||||
Fstypename [16]int8
|
Fstypename [16]byte
|
||||||
Mntonname [1024]int8
|
Mntonname [1024]byte
|
||||||
Mntfromname [1024]int8
|
Mntfromname [1024]byte
|
||||||
Reserved [8]uint32
|
Flags_ext uint32
|
||||||
|
Reserved [7]uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
type Flock_t struct {
|
type Flock_t struct {
|
||||||
|
@ -133,8 +133,7 @@ type Fbootstraptransfer_t struct {
|
||||||
|
|
||||||
type Log2phys_t struct {
|
type Log2phys_t struct {
|
||||||
Flags uint32
|
Flags uint32
|
||||||
_ [8]byte
|
_ [16]byte
|
||||||
_ [8]byte
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type Fsid struct {
|
type Fsid struct {
|
||||||
|
@ -225,10 +224,8 @@ type IPv6Mreq struct {
|
||||||
type Msghdr struct {
|
type Msghdr struct {
|
||||||
Name *byte
|
Name *byte
|
||||||
Namelen uint32
|
Namelen uint32
|
||||||
_ [4]byte
|
|
||||||
Iov *Iovec
|
Iov *Iovec
|
||||||
Iovlen int32
|
Iovlen int32
|
||||||
_ [4]byte
|
|
||||||
Control *byte
|
Control *byte
|
||||||
Controllen uint32
|
Controllen uint32
|
||||||
Flags int32
|
Flags int32
|
||||||
|
@ -313,7 +310,6 @@ type IfMsghdr struct {
|
||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
_ [2]byte
|
|
||||||
Data IfData
|
Data IfData
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -356,7 +352,6 @@ type IfaMsghdr struct {
|
||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
_ [2]byte
|
|
||||||
Metric int32
|
Metric int32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -377,7 +372,6 @@ type IfmaMsghdr2 struct {
|
||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
_ [2]byte
|
|
||||||
Refcount int32
|
Refcount int32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -386,7 +380,6 @@ type RtMsghdr struct {
|
||||||
Version uint8
|
Version uint8
|
||||||
Type uint8
|
Type uint8
|
||||||
Index uint16
|
Index uint16
|
||||||
_ [2]byte
|
|
||||||
Flags int32
|
Flags int32
|
||||||
Addrs int32
|
Addrs int32
|
||||||
Pid int32
|
Pid int32
|
||||||
|
@ -408,7 +401,8 @@ type RtMetrics struct {
|
||||||
Rtt uint32
|
Rtt uint32
|
||||||
Rttvar uint32
|
Rttvar uint32
|
||||||
Pksent uint32
|
Pksent uint32
|
||||||
Filler [4]uint32
|
State uint32
|
||||||
|
Filler [3]uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -431,7 +425,6 @@ type BpfStat struct {
|
||||||
|
|
||||||
type BpfProgram struct {
|
type BpfProgram struct {
|
||||||
Len uint32
|
Len uint32
|
||||||
_ [4]byte
|
|
||||||
Insns *BpfInsn
|
Insns *BpfInsn
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -456,7 +449,6 @@ type Termios struct {
|
||||||
Cflag uint64
|
Cflag uint64
|
||||||
Lflag uint64
|
Lflag uint64
|
||||||
Cc [20]uint8
|
Cc [20]uint8
|
||||||
_ [4]byte
|
|
||||||
Ispeed uint64
|
Ispeed uint64
|
||||||
Ospeed uint64
|
Ospeed uint64
|
||||||
}
|
}
|
||||||
|
|
20
vendor/golang.org/x/sys/unix/ztypes_darwin_arm.go
generated
vendored
20
vendor/golang.org/x/sys/unix/ztypes_darwin_arm.go
generated
vendored
|
@ -1,6 +1,5 @@
|
||||||
// NOTE: cgo can't generate struct Stat_t and struct Statfs_t yet
|
// cgo -godefs types_darwin.go | go run mkpost.go
|
||||||
// Created by cgo -godefs - DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
// cgo -godefs types_darwin.go
|
|
||||||
|
|
||||||
// +build arm,darwin
|
// +build arm,darwin
|
||||||
|
|
||||||
|
@ -31,7 +30,7 @@ type Timeval struct {
|
||||||
Usec int32
|
Usec int32
|
||||||
}
|
}
|
||||||
|
|
||||||
type Timeval32 [0]byte
|
type Timeval32 struct{}
|
||||||
|
|
||||||
type Rusage struct {
|
type Rusage struct {
|
||||||
Utime Timeval
|
Utime Timeval
|
||||||
|
@ -93,9 +92,9 @@ type Statfs_t struct {
|
||||||
Type uint32
|
Type uint32
|
||||||
Flags uint32
|
Flags uint32
|
||||||
Fssubtype uint32
|
Fssubtype uint32
|
||||||
Fstypename [16]int8
|
Fstypename [16]byte
|
||||||
Mntonname [1024]int8
|
Mntonname [1024]byte
|
||||||
Mntfromname [1024]int8
|
Mntfromname [1024]byte
|
||||||
Reserved [8]uint32
|
Reserved [8]uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -306,7 +305,6 @@ type IfMsghdr struct {
|
||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
_ [2]byte
|
|
||||||
Data IfData
|
Data IfData
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -349,7 +347,6 @@ type IfaMsghdr struct {
|
||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
_ [2]byte
|
|
||||||
Metric int32
|
Metric int32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -370,7 +367,6 @@ type IfmaMsghdr2 struct {
|
||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
_ [2]byte
|
|
||||||
Refcount int32
|
Refcount int32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -379,7 +375,6 @@ type RtMsghdr struct {
|
||||||
Version uint8
|
Version uint8
|
||||||
Type uint8
|
Type uint8
|
||||||
Index uint16
|
Index uint16
|
||||||
_ [2]byte
|
|
||||||
Flags int32
|
Flags int32
|
||||||
Addrs int32
|
Addrs int32
|
||||||
Pid int32
|
Pid int32
|
||||||
|
@ -401,7 +396,8 @@ type RtMetrics struct {
|
||||||
Rtt uint32
|
Rtt uint32
|
||||||
Rttvar uint32
|
Rttvar uint32
|
||||||
Pksent uint32
|
Pksent uint32
|
||||||
Filler [4]uint32
|
State uint32
|
||||||
|
Filler [3]uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
24
vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go
generated
vendored
24
vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go
generated
vendored
|
@ -70,7 +70,6 @@ type Stat_t struct {
|
||||||
Uid uint32
|
Uid uint32
|
||||||
Gid uint32
|
Gid uint32
|
||||||
Rdev int32
|
Rdev int32
|
||||||
_ [4]byte
|
|
||||||
Atim Timespec
|
Atim Timespec
|
||||||
Mtim Timespec
|
Mtim Timespec
|
||||||
Ctim Timespec
|
Ctim Timespec
|
||||||
|
@ -97,10 +96,11 @@ type Statfs_t struct {
|
||||||
Type uint32
|
Type uint32
|
||||||
Flags uint32
|
Flags uint32
|
||||||
Fssubtype uint32
|
Fssubtype uint32
|
||||||
Fstypename [16]int8
|
Fstypename [16]byte
|
||||||
Mntonname [1024]int8
|
Mntonname [1024]byte
|
||||||
Mntfromname [1024]int8
|
Mntfromname [1024]byte
|
||||||
Reserved [8]uint32
|
Flags_ext uint32
|
||||||
|
Reserved [7]uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
type Flock_t struct {
|
type Flock_t struct {
|
||||||
|
@ -133,8 +133,7 @@ type Fbootstraptransfer_t struct {
|
||||||
|
|
||||||
type Log2phys_t struct {
|
type Log2phys_t struct {
|
||||||
Flags uint32
|
Flags uint32
|
||||||
_ [8]byte
|
_ [16]byte
|
||||||
_ [8]byte
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type Fsid struct {
|
type Fsid struct {
|
||||||
|
@ -225,10 +224,8 @@ type IPv6Mreq struct {
|
||||||
type Msghdr struct {
|
type Msghdr struct {
|
||||||
Name *byte
|
Name *byte
|
||||||
Namelen uint32
|
Namelen uint32
|
||||||
_ [4]byte
|
|
||||||
Iov *Iovec
|
Iov *Iovec
|
||||||
Iovlen int32
|
Iovlen int32
|
||||||
_ [4]byte
|
|
||||||
Control *byte
|
Control *byte
|
||||||
Controllen uint32
|
Controllen uint32
|
||||||
Flags int32
|
Flags int32
|
||||||
|
@ -313,7 +310,6 @@ type IfMsghdr struct {
|
||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
_ [2]byte
|
|
||||||
Data IfData
|
Data IfData
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -356,7 +352,6 @@ type IfaMsghdr struct {
|
||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
_ [2]byte
|
|
||||||
Metric int32
|
Metric int32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -377,7 +372,6 @@ type IfmaMsghdr2 struct {
|
||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
_ [2]byte
|
|
||||||
Refcount int32
|
Refcount int32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -386,7 +380,6 @@ type RtMsghdr struct {
|
||||||
Version uint8
|
Version uint8
|
||||||
Type uint8
|
Type uint8
|
||||||
Index uint16
|
Index uint16
|
||||||
_ [2]byte
|
|
||||||
Flags int32
|
Flags int32
|
||||||
Addrs int32
|
Addrs int32
|
||||||
Pid int32
|
Pid int32
|
||||||
|
@ -408,7 +401,8 @@ type RtMetrics struct {
|
||||||
Rtt uint32
|
Rtt uint32
|
||||||
Rttvar uint32
|
Rttvar uint32
|
||||||
Pksent uint32
|
Pksent uint32
|
||||||
Filler [4]uint32
|
State uint32
|
||||||
|
Filler [3]uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -431,7 +425,6 @@ type BpfStat struct {
|
||||||
|
|
||||||
type BpfProgram struct {
|
type BpfProgram struct {
|
||||||
Len uint32
|
Len uint32
|
||||||
_ [4]byte
|
|
||||||
Insns *BpfInsn
|
Insns *BpfInsn
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -456,7 +449,6 @@ type Termios struct {
|
||||||
Cflag uint64
|
Cflag uint64
|
||||||
Lflag uint64
|
Lflag uint64
|
||||||
Cc [20]uint8
|
Cc [20]uint8
|
||||||
_ [4]byte
|
|
||||||
Ispeed uint64
|
Ispeed uint64
|
||||||
Ospeed uint64
|
Ospeed uint64
|
||||||
}
|
}
|
||||||
|
|
46
vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go
generated
vendored
46
vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go
generated
vendored
|
@ -70,11 +70,11 @@ type Stat_t struct {
|
||||||
Ctim Timespec
|
Ctim Timespec
|
||||||
Size int64
|
Size int64
|
||||||
Blocks int64
|
Blocks int64
|
||||||
Blksize uint32
|
_ uint32
|
||||||
Flags uint32
|
Flags uint32
|
||||||
Gen uint32
|
Gen uint32
|
||||||
Lspare int32
|
Lspare int32
|
||||||
Qspare1 int64
|
Blksize int64
|
||||||
Qspare2 int64
|
Qspare2 int64
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -91,17 +91,15 @@ type Statfs_t struct {
|
||||||
Owner uint32
|
Owner uint32
|
||||||
Type int32
|
Type int32
|
||||||
Flags int32
|
Flags int32
|
||||||
_ [4]byte
|
|
||||||
Syncwrites int64
|
Syncwrites int64
|
||||||
Asyncwrites int64
|
Asyncwrites int64
|
||||||
Fstypename [16]int8
|
Fstypename [16]byte
|
||||||
Mntonname [80]int8
|
Mntonname [80]byte
|
||||||
Syncreads int64
|
Syncreads int64
|
||||||
Asyncreads int64
|
Asyncreads int64
|
||||||
Spares1 int16
|
Spares1 int16
|
||||||
Mntfromname [80]int8
|
Mntfromname [80]byte
|
||||||
Spares2 int16
|
Spares2 int16
|
||||||
_ [4]byte
|
|
||||||
Spare [2]int64
|
Spare [2]int64
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -202,10 +200,8 @@ type IPv6Mreq struct {
|
||||||
type Msghdr struct {
|
type Msghdr struct {
|
||||||
Name *byte
|
Name *byte
|
||||||
Namelen uint32
|
Namelen uint32
|
||||||
_ [4]byte
|
|
||||||
Iov *Iovec
|
Iov *Iovec
|
||||||
Iovlen int32
|
Iovlen int32
|
||||||
_ [4]byte
|
|
||||||
Control *byte
|
Control *byte
|
||||||
Controllen uint32
|
Controllen uint32
|
||||||
Flags int32
|
Flags int32
|
||||||
|
@ -269,7 +265,7 @@ type FdSet struct {
|
||||||
const (
|
const (
|
||||||
SizeofIfMsghdr = 0xb0
|
SizeofIfMsghdr = 0xb0
|
||||||
SizeofIfData = 0xa0
|
SizeofIfData = 0xa0
|
||||||
SizeofIfaMsghdr = 0x14
|
SizeofIfaMsghdr = 0x18
|
||||||
SizeofIfmaMsghdr = 0x10
|
SizeofIfmaMsghdr = 0x10
|
||||||
SizeofIfAnnounceMsghdr = 0x18
|
SizeofIfAnnounceMsghdr = 0x18
|
||||||
SizeofRtMsghdr = 0x98
|
SizeofRtMsghdr = 0x98
|
||||||
|
@ -280,10 +276,9 @@ type IfMsghdr struct {
|
||||||
Msglen uint16
|
Msglen uint16
|
||||||
Version uint8
|
Version uint8
|
||||||
Type uint8
|
Type uint8
|
||||||
Addrs int32
|
|
||||||
Flags int32
|
|
||||||
Index uint16
|
Index uint16
|
||||||
_ [2]byte
|
Flags int32
|
||||||
|
Addrs int32
|
||||||
Data IfData
|
Data IfData
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -294,7 +289,6 @@ type IfData struct {
|
||||||
Hdrlen uint8
|
Hdrlen uint8
|
||||||
Recvquota uint8
|
Recvquota uint8
|
||||||
Xmitquota uint8
|
Xmitquota uint8
|
||||||
_ [2]byte
|
|
||||||
Mtu uint64
|
Mtu uint64
|
||||||
Metric uint64
|
Metric uint64
|
||||||
Link_state uint64
|
Link_state uint64
|
||||||
|
@ -316,24 +310,23 @@ type IfData struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type IfaMsghdr struct {
|
type IfaMsghdr struct {
|
||||||
Msglen uint16
|
Msglen uint16
|
||||||
Version uint8
|
Version uint8
|
||||||
Type uint8
|
Type uint8
|
||||||
Addrs int32
|
Index uint16
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Addrs int32
|
||||||
_ [2]byte
|
Addrflags int32
|
||||||
Metric int32
|
Metric int32
|
||||||
}
|
}
|
||||||
|
|
||||||
type IfmaMsghdr struct {
|
type IfmaMsghdr struct {
|
||||||
Msglen uint16
|
Msglen uint16
|
||||||
Version uint8
|
Version uint8
|
||||||
Type uint8
|
Type uint8
|
||||||
Addrs int32
|
|
||||||
Flags int32
|
|
||||||
Index uint16
|
Index uint16
|
||||||
_ [2]byte
|
Flags int32
|
||||||
|
Addrs int32
|
||||||
}
|
}
|
||||||
|
|
||||||
type IfAnnounceMsghdr struct {
|
type IfAnnounceMsghdr struct {
|
||||||
|
@ -350,7 +343,6 @@ type RtMsghdr struct {
|
||||||
Version uint8
|
Version uint8
|
||||||
Type uint8
|
Type uint8
|
||||||
Index uint16
|
Index uint16
|
||||||
_ [2]byte
|
|
||||||
Flags int32
|
Flags int32
|
||||||
Addrs int32
|
Addrs int32
|
||||||
Pid int32
|
Pid int32
|
||||||
|
@ -374,7 +366,6 @@ type RtMetrics struct {
|
||||||
Hopcount uint64
|
Hopcount uint64
|
||||||
Mssopt uint16
|
Mssopt uint16
|
||||||
Pad uint16
|
Pad uint16
|
||||||
_ [4]byte
|
|
||||||
Msl uint64
|
Msl uint64
|
||||||
Iwmaxsegs uint64
|
Iwmaxsegs uint64
|
||||||
Iwcapsegs uint64
|
Iwcapsegs uint64
|
||||||
|
@ -400,7 +391,6 @@ type BpfStat struct {
|
||||||
|
|
||||||
type BpfProgram struct {
|
type BpfProgram struct {
|
||||||
Len uint32
|
Len uint32
|
||||||
_ [4]byte
|
|
||||||
Insns *BpfInsn
|
Insns *BpfInsn
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2
vendor/golang.org/x/sys/unix/ztypes_linux.go
generated
vendored
2
vendor/golang.org/x/sys/unix/ztypes_linux.go
generated
vendored
|
@ -988,7 +988,7 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
PERF_FLAG_FD_CLOEXEF_TYPE_HARDWARE = 0x0
|
PERF_TYPE_HARDWARE = 0x0
|
||||||
PERF_TYPE_SOFTWARE = 0x1
|
PERF_TYPE_SOFTWARE = 0x1
|
||||||
PERF_TYPE_TRACEPOINT = 0x2
|
PERF_TYPE_TRACEPOINT = 0x2
|
||||||
PERF_TYPE_HW_CACHE = 0x3
|
PERF_TYPE_HW_CACHE = 0x3
|
||||||
|
|
2
vendor/golang.org/x/sys/windows/syscall_windows.go
generated
vendored
2
vendor/golang.org/x/sys/windows/syscall_windows.go
generated
vendored
|
@ -270,9 +270,11 @@ func NewCallbackCDecl(fn interface{}) uintptr {
|
||||||
//sys RegEnumKeyEx(key Handle, index uint32, name *uint16, nameLen *uint32, reserved *uint32, class *uint16, classLen *uint32, lastWriteTime *Filetime) (regerrno error) = advapi32.RegEnumKeyExW
|
//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 RegQueryValueEx(key Handle, name *uint16, reserved *uint32, valtype *uint32, buf *byte, buflen *uint32) (regerrno error) = advapi32.RegQueryValueExW
|
||||||
//sys GetCurrentProcessId() (pid uint32) = kernel32.GetCurrentProcessId
|
//sys GetCurrentProcessId() (pid uint32) = kernel32.GetCurrentProcessId
|
||||||
|
//sys ProcessIdToSessionId(pid uint32, sessionid *uint32) (err error) = kernel32.ProcessIdToSessionId
|
||||||
//sys GetConsoleMode(console Handle, mode *uint32) (err error) = kernel32.GetConsoleMode
|
//sys GetConsoleMode(console Handle, mode *uint32) (err error) = kernel32.GetConsoleMode
|
||||||
//sys SetConsoleMode(console Handle, mode uint32) (err error) = kernel32.SetConsoleMode
|
//sys SetConsoleMode(console Handle, mode uint32) (err error) = kernel32.SetConsoleMode
|
||||||
//sys GetConsoleScreenBufferInfo(console Handle, info *ConsoleScreenBufferInfo) (err error) = kernel32.GetConsoleScreenBufferInfo
|
//sys GetConsoleScreenBufferInfo(console Handle, info *ConsoleScreenBufferInfo) (err error) = kernel32.GetConsoleScreenBufferInfo
|
||||||
|
//sys SetConsoleCursorPosition(console Handle, position Coord) (err error) = kernel32.SetConsoleCursorPosition
|
||||||
//sys WriteConsole(console Handle, buf *uint16, towrite uint32, written *uint32, reserved *byte) (err error) = kernel32.WriteConsoleW
|
//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 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 CreateToolhelp32Snapshot(flags uint32, processId uint32) (handle Handle, err error) [failretval==InvalidHandle] = kernel32.CreateToolhelp32Snapshot
|
||||||
|
|
88
vendor/golang.org/x/sys/windows/zsyscall_windows.go
generated
vendored
88
vendor/golang.org/x/sys/windows/zsyscall_windows.go
generated
vendored
|
@ -180,9 +180,11 @@ var (
|
||||||
procRegEnumKeyExW = modadvapi32.NewProc("RegEnumKeyExW")
|
procRegEnumKeyExW = modadvapi32.NewProc("RegEnumKeyExW")
|
||||||
procRegQueryValueExW = modadvapi32.NewProc("RegQueryValueExW")
|
procRegQueryValueExW = modadvapi32.NewProc("RegQueryValueExW")
|
||||||
procGetCurrentProcessId = modkernel32.NewProc("GetCurrentProcessId")
|
procGetCurrentProcessId = modkernel32.NewProc("GetCurrentProcessId")
|
||||||
|
procProcessIdToSessionId = modkernel32.NewProc("ProcessIdToSessionId")
|
||||||
procGetConsoleMode = modkernel32.NewProc("GetConsoleMode")
|
procGetConsoleMode = modkernel32.NewProc("GetConsoleMode")
|
||||||
procSetConsoleMode = modkernel32.NewProc("SetConsoleMode")
|
procSetConsoleMode = modkernel32.NewProc("SetConsoleMode")
|
||||||
procGetConsoleScreenBufferInfo = modkernel32.NewProc("GetConsoleScreenBufferInfo")
|
procGetConsoleScreenBufferInfo = modkernel32.NewProc("GetConsoleScreenBufferInfo")
|
||||||
|
procSetConsoleCursorPosition = modkernel32.NewProc("SetConsoleCursorPosition")
|
||||||
procWriteConsoleW = modkernel32.NewProc("WriteConsoleW")
|
procWriteConsoleW = modkernel32.NewProc("WriteConsoleW")
|
||||||
procReadConsoleW = modkernel32.NewProc("ReadConsoleW")
|
procReadConsoleW = modkernel32.NewProc("ReadConsoleW")
|
||||||
procCreateToolhelp32Snapshot = modkernel32.NewProc("CreateToolhelp32Snapshot")
|
procCreateToolhelp32Snapshot = modkernel32.NewProc("CreateToolhelp32Snapshot")
|
||||||
|
@ -761,8 +763,6 @@ func IsWow64Process(handle Handle, isWow64 *bool) (err error) {
|
||||||
var _p0 uint32
|
var _p0 uint32
|
||||||
if *isWow64 {
|
if *isWow64 {
|
||||||
_p0 = 1
|
_p0 = 1
|
||||||
} else {
|
|
||||||
_p0 = 0
|
|
||||||
}
|
}
|
||||||
r1, _, e1 := syscall.Syscall(procIsWow64Process.Addr(), 2, uintptr(handle), uintptr(unsafe.Pointer(&_p0)), 0)
|
r1, _, e1 := syscall.Syscall(procIsWow64Process.Addr(), 2, uintptr(handle), uintptr(unsafe.Pointer(&_p0)), 0)
|
||||||
*isWow64 = _p0 != 0
|
*isWow64 = _p0 != 0
|
||||||
|
@ -825,8 +825,6 @@ func GetOverlappedResult(handle Handle, overlapped *Overlapped, done *uint32, wa
|
||||||
var _p0 uint32
|
var _p0 uint32
|
||||||
if wait {
|
if wait {
|
||||||
_p0 = 1
|
_p0 = 1
|
||||||
} else {
|
|
||||||
_p0 = 0
|
|
||||||
}
|
}
|
||||||
r1, _, e1 := syscall.Syscall6(procGetOverlappedResult.Addr(), 4, uintptr(handle), uintptr(unsafe.Pointer(overlapped)), uintptr(unsafe.Pointer(done)), uintptr(_p0), 0, 0)
|
r1, _, e1 := syscall.Syscall6(procGetOverlappedResult.Addr(), 4, uintptr(handle), uintptr(unsafe.Pointer(overlapped)), uintptr(unsafe.Pointer(done)), uintptr(_p0), 0, 0)
|
||||||
if r1 == 0 {
|
if r1 == 0 {
|
||||||
|
@ -1183,8 +1181,6 @@ func CreateProcess(appName *uint16, commandLine *uint16, procSecurity *SecurityA
|
||||||
var _p0 uint32
|
var _p0 uint32
|
||||||
if inheritHandles {
|
if inheritHandles {
|
||||||
_p0 = 1
|
_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)
|
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 r1 == 0 {
|
||||||
|
@ -1201,8 +1197,6 @@ func OpenProcess(desiredAccess uint32, inheritHandle bool, processId uint32) (ha
|
||||||
var _p0 uint32
|
var _p0 uint32
|
||||||
if inheritHandle {
|
if inheritHandle {
|
||||||
_p0 = 1
|
_p0 = 1
|
||||||
} else {
|
|
||||||
_p0 = 0
|
|
||||||
}
|
}
|
||||||
r0, _, e1 := syscall.Syscall(procOpenProcess.Addr(), 3, uintptr(desiredAccess), uintptr(_p0), uintptr(processId))
|
r0, _, e1 := syscall.Syscall(procOpenProcess.Addr(), 3, uintptr(desiredAccess), uintptr(_p0), uintptr(processId))
|
||||||
handle = Handle(r0)
|
handle = Handle(r0)
|
||||||
|
@ -1288,8 +1282,6 @@ func DuplicateHandle(hSourceProcessHandle Handle, hSourceHandle Handle, hTargetP
|
||||||
var _p0 uint32
|
var _p0 uint32
|
||||||
if bInheritHandle {
|
if bInheritHandle {
|
||||||
_p0 = 1
|
_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)
|
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 r1 == 0 {
|
||||||
|
@ -1319,8 +1311,6 @@ func waitForMultipleObjects(count uint32, handles uintptr, waitAll bool, waitMil
|
||||||
var _p0 uint32
|
var _p0 uint32
|
||||||
if waitAll {
|
if waitAll {
|
||||||
_p0 = 1
|
_p0 = 1
|
||||||
} else {
|
|
||||||
_p0 = 0
|
|
||||||
}
|
}
|
||||||
r0, _, e1 := syscall.Syscall6(procWaitForMultipleObjects.Addr(), 4, uintptr(count), uintptr(handles), uintptr(_p0), uintptr(waitMilliseconds), 0, 0)
|
r0, _, e1 := syscall.Syscall6(procWaitForMultipleObjects.Addr(), 4, uintptr(count), uintptr(handles), uintptr(_p0), uintptr(waitMilliseconds), 0, 0)
|
||||||
event = uint32(r0)
|
event = uint32(r0)
|
||||||
|
@ -1462,8 +1452,6 @@ func CreateEnvironmentBlock(block **uint16, token Token, inheritExisting bool) (
|
||||||
var _p0 uint32
|
var _p0 uint32
|
||||||
if inheritExisting {
|
if inheritExisting {
|
||||||
_p0 = 1
|
_p0 = 1
|
||||||
} else {
|
|
||||||
_p0 = 0
|
|
||||||
}
|
}
|
||||||
r1, _, e1 := syscall.Syscall(procCreateEnvironmentBlock.Addr(), 3, uintptr(unsafe.Pointer(block)), uintptr(token), uintptr(_p0))
|
r1, _, e1 := syscall.Syscall(procCreateEnvironmentBlock.Addr(), 3, uintptr(unsafe.Pointer(block)), uintptr(token), uintptr(_p0))
|
||||||
if r1 == 0 {
|
if r1 == 0 {
|
||||||
|
@ -1765,8 +1753,6 @@ func ReadDirectoryChanges(handle Handle, buf *byte, buflen uint32, watchSubTree
|
||||||
var _p0 uint32
|
var _p0 uint32
|
||||||
if watchSubTree {
|
if watchSubTree {
|
||||||
_p0 = 1
|
_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)
|
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 r1 == 0 {
|
||||||
|
@ -1942,6 +1928,18 @@ func GetCurrentProcessId() (pid uint32) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func ProcessIdToSessionId(pid uint32, sessionid *uint32) (err error) {
|
||||||
|
r1, _, e1 := syscall.Syscall(procProcessIdToSessionId.Addr(), 2, uintptr(pid), uintptr(unsafe.Pointer(sessionid)), 0)
|
||||||
|
if r1 == 0 {
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
} else {
|
||||||
|
err = syscall.EINVAL
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
func GetConsoleMode(console Handle, mode *uint32) (err error) {
|
func GetConsoleMode(console Handle, mode *uint32) (err error) {
|
||||||
r1, _, e1 := syscall.Syscall(procGetConsoleMode.Addr(), 2, uintptr(console), uintptr(unsafe.Pointer(mode)), 0)
|
r1, _, e1 := syscall.Syscall(procGetConsoleMode.Addr(), 2, uintptr(console), uintptr(unsafe.Pointer(mode)), 0)
|
||||||
if r1 == 0 {
|
if r1 == 0 {
|
||||||
|
@ -1978,6 +1976,18 @@ func GetConsoleScreenBufferInfo(console Handle, info *ConsoleScreenBufferInfo) (
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func SetConsoleCursorPosition(console Handle, position Coord) (err error) {
|
||||||
|
r1, _, e1 := syscall.Syscall(procSetConsoleCursorPosition.Addr(), 2, uintptr(console), uintptr(*((*uint32)(unsafe.Pointer(&position)))), 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) {
|
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)
|
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 r1 == 0 {
|
||||||
|
@ -2135,8 +2145,6 @@ func OpenEvent(desiredAccess uint32, inheritHandle bool, name *uint16) (handle H
|
||||||
var _p0 uint32
|
var _p0 uint32
|
||||||
if inheritHandle {
|
if inheritHandle {
|
||||||
_p0 = 1
|
_p0 = 1
|
||||||
} else {
|
|
||||||
_p0 = 0
|
|
||||||
}
|
}
|
||||||
r0, _, e1 := syscall.Syscall(procOpenEventW.Addr(), 3, uintptr(desiredAccess), uintptr(_p0), uintptr(unsafe.Pointer(name)))
|
r0, _, e1 := syscall.Syscall(procOpenEventW.Addr(), 3, uintptr(desiredAccess), uintptr(_p0), uintptr(unsafe.Pointer(name)))
|
||||||
handle = Handle(r0)
|
handle = Handle(r0)
|
||||||
|
@ -2190,8 +2198,6 @@ func CreateMutex(mutexAttrs *SecurityAttributes, initialOwner bool, name *uint16
|
||||||
var _p0 uint32
|
var _p0 uint32
|
||||||
if initialOwner {
|
if initialOwner {
|
||||||
_p0 = 1
|
_p0 = 1
|
||||||
} else {
|
|
||||||
_p0 = 0
|
|
||||||
}
|
}
|
||||||
r0, _, e1 := syscall.Syscall(procCreateMutexW.Addr(), 3, uintptr(unsafe.Pointer(mutexAttrs)), uintptr(_p0), uintptr(unsafe.Pointer(name)))
|
r0, _, e1 := syscall.Syscall(procCreateMutexW.Addr(), 3, uintptr(unsafe.Pointer(mutexAttrs)), uintptr(_p0), uintptr(unsafe.Pointer(name)))
|
||||||
handle = Handle(r0)
|
handle = Handle(r0)
|
||||||
|
@ -2222,8 +2228,6 @@ func OpenMutex(desiredAccess uint32, inheritHandle bool, name *uint16) (handle H
|
||||||
var _p0 uint32
|
var _p0 uint32
|
||||||
if inheritHandle {
|
if inheritHandle {
|
||||||
_p0 = 1
|
_p0 = 1
|
||||||
} else {
|
|
||||||
_p0 = 0
|
|
||||||
}
|
}
|
||||||
r0, _, e1 := syscall.Syscall(procOpenMutexW.Addr(), 3, uintptr(desiredAccess), uintptr(_p0), uintptr(unsafe.Pointer(name)))
|
r0, _, e1 := syscall.Syscall(procOpenMutexW.Addr(), 3, uintptr(desiredAccess), uintptr(_p0), uintptr(unsafe.Pointer(name)))
|
||||||
handle = Handle(r0)
|
handle = Handle(r0)
|
||||||
|
@ -2253,8 +2257,6 @@ func SleepEx(milliseconds uint32, alertable bool) (ret uint32) {
|
||||||
var _p0 uint32
|
var _p0 uint32
|
||||||
if alertable {
|
if alertable {
|
||||||
_p0 = 1
|
_p0 = 1
|
||||||
} else {
|
|
||||||
_p0 = 0
|
|
||||||
}
|
}
|
||||||
r0, _, _ := syscall.Syscall(procSleepEx.Addr(), 2, uintptr(milliseconds), uintptr(_p0), 0)
|
r0, _, _ := syscall.Syscall(procSleepEx.Addr(), 2, uintptr(milliseconds), uintptr(_p0), 0)
|
||||||
ret = uint32(r0)
|
ret = uint32(r0)
|
||||||
|
@ -2396,8 +2398,6 @@ func OpenThread(desiredAccess uint32, inheritHandle bool, threadId uint32) (hand
|
||||||
var _p0 uint32
|
var _p0 uint32
|
||||||
if inheritHandle {
|
if inheritHandle {
|
||||||
_p0 = 1
|
_p0 = 1
|
||||||
} else {
|
|
||||||
_p0 = 0
|
|
||||||
}
|
}
|
||||||
r0, _, e1 := syscall.Syscall(procOpenThread.Addr(), 3, uintptr(desiredAccess), uintptr(_p0), uintptr(threadId))
|
r0, _, e1 := syscall.Syscall(procOpenThread.Addr(), 3, uintptr(desiredAccess), uintptr(_p0), uintptr(threadId))
|
||||||
handle = Handle(r0)
|
handle = Handle(r0)
|
||||||
|
@ -2415,8 +2415,6 @@ func SetProcessPriorityBoost(process Handle, disable bool) (err error) {
|
||||||
var _p0 uint32
|
var _p0 uint32
|
||||||
if disable {
|
if disable {
|
||||||
_p0 = 1
|
_p0 = 1
|
||||||
} else {
|
|
||||||
_p0 = 0
|
|
||||||
}
|
}
|
||||||
r1, _, e1 := syscall.Syscall(procSetProcessPriorityBoost.Addr(), 2, uintptr(process), uintptr(_p0), 0)
|
r1, _, e1 := syscall.Syscall(procSetProcessPriorityBoost.Addr(), 2, uintptr(process), uintptr(_p0), 0)
|
||||||
if r1 == 0 {
|
if r1 == 0 {
|
||||||
|
@ -2714,14 +2712,10 @@ func InitiateSystemShutdownEx(machineName *uint16, message *uint16, timeout uint
|
||||||
var _p0 uint32
|
var _p0 uint32
|
||||||
if forceAppsClosed {
|
if forceAppsClosed {
|
||||||
_p0 = 1
|
_p0 = 1
|
||||||
} else {
|
|
||||||
_p0 = 0
|
|
||||||
}
|
}
|
||||||
var _p1 uint32
|
var _p1 uint32
|
||||||
if rebootAfterShutdown {
|
if rebootAfterShutdown {
|
||||||
_p1 = 1
|
_p1 = 1
|
||||||
} else {
|
|
||||||
_p1 = 0
|
|
||||||
}
|
}
|
||||||
r1, _, e1 := syscall.Syscall6(procInitiateSystemShutdownExW.Addr(), 6, uintptr(unsafe.Pointer(machineName)), uintptr(unsafe.Pointer(message)), uintptr(timeout), uintptr(_p0), uintptr(_p1), uintptr(reason))
|
r1, _, e1 := syscall.Syscall6(procInitiateSystemShutdownExW.Addr(), 6, uintptr(unsafe.Pointer(machineName)), uintptr(unsafe.Pointer(message)), uintptr(timeout), uintptr(_p0), uintptr(_p1), uintptr(reason))
|
||||||
if r1 == 0 {
|
if r1 == 0 {
|
||||||
|
@ -3513,8 +3507,6 @@ func OpenThreadToken(thread Handle, access uint32, openAsSelf bool, token *Token
|
||||||
var _p0 uint32
|
var _p0 uint32
|
||||||
if openAsSelf {
|
if openAsSelf {
|
||||||
_p0 = 1
|
_p0 = 1
|
||||||
} else {
|
|
||||||
_p0 = 0
|
|
||||||
}
|
}
|
||||||
r1, _, e1 := syscall.Syscall6(procOpenThreadToken.Addr(), 4, uintptr(thread), uintptr(access), uintptr(_p0), uintptr(unsafe.Pointer(token)), 0, 0)
|
r1, _, e1 := syscall.Syscall6(procOpenThreadToken.Addr(), 4, uintptr(thread), uintptr(access), uintptr(_p0), uintptr(unsafe.Pointer(token)), 0, 0)
|
||||||
if r1 == 0 {
|
if r1 == 0 {
|
||||||
|
@ -3579,8 +3571,6 @@ func AdjustTokenPrivileges(token Token, disableAllPrivileges bool, newstate *Tok
|
||||||
var _p0 uint32
|
var _p0 uint32
|
||||||
if disableAllPrivileges {
|
if disableAllPrivileges {
|
||||||
_p0 = 1
|
_p0 = 1
|
||||||
} else {
|
|
||||||
_p0 = 0
|
|
||||||
}
|
}
|
||||||
r1, _, e1 := syscall.Syscall6(procAdjustTokenPrivileges.Addr(), 6, uintptr(token), uintptr(_p0), uintptr(unsafe.Pointer(newstate)), uintptr(buflen), uintptr(unsafe.Pointer(prevstate)), uintptr(unsafe.Pointer(returnlen)))
|
r1, _, e1 := syscall.Syscall6(procAdjustTokenPrivileges.Addr(), 6, uintptr(token), uintptr(_p0), uintptr(unsafe.Pointer(newstate)), uintptr(buflen), uintptr(unsafe.Pointer(prevstate)), uintptr(unsafe.Pointer(returnlen)))
|
||||||
if r1 == 0 {
|
if r1 == 0 {
|
||||||
|
@ -3597,8 +3587,6 @@ func AdjustTokenGroups(token Token, resetToDefault bool, newstate *Tokengroups,
|
||||||
var _p0 uint32
|
var _p0 uint32
|
||||||
if resetToDefault {
|
if resetToDefault {
|
||||||
_p0 = 1
|
_p0 = 1
|
||||||
} else {
|
|
||||||
_p0 = 0
|
|
||||||
}
|
}
|
||||||
r1, _, e1 := syscall.Syscall6(procAdjustTokenGroups.Addr(), 6, uintptr(token), uintptr(_p0), uintptr(unsafe.Pointer(newstate)), uintptr(buflen), uintptr(unsafe.Pointer(prevstate)), uintptr(unsafe.Pointer(returnlen)))
|
r1, _, e1 := syscall.Syscall6(procAdjustTokenGroups.Addr(), 6, uintptr(token), uintptr(_p0), uintptr(unsafe.Pointer(newstate)), uintptr(buflen), uintptr(unsafe.Pointer(prevstate)), uintptr(unsafe.Pointer(returnlen)))
|
||||||
if r1 == 0 {
|
if r1 == 0 {
|
||||||
|
@ -3810,14 +3798,10 @@ func getSecurityDescriptorDacl(sd *SECURITY_DESCRIPTOR, daclPresent *bool, dacl
|
||||||
var _p0 uint32
|
var _p0 uint32
|
||||||
if *daclPresent {
|
if *daclPresent {
|
||||||
_p0 = 1
|
_p0 = 1
|
||||||
} else {
|
|
||||||
_p0 = 0
|
|
||||||
}
|
}
|
||||||
var _p1 uint32
|
var _p1 uint32
|
||||||
if *daclDefaulted {
|
if *daclDefaulted {
|
||||||
_p1 = 1
|
_p1 = 1
|
||||||
} else {
|
|
||||||
_p1 = 0
|
|
||||||
}
|
}
|
||||||
r1, _, e1 := syscall.Syscall6(procGetSecurityDescriptorDacl.Addr(), 4, uintptr(unsafe.Pointer(sd)), uintptr(unsafe.Pointer(&_p0)), uintptr(unsafe.Pointer(dacl)), uintptr(unsafe.Pointer(&_p1)), 0, 0)
|
r1, _, e1 := syscall.Syscall6(procGetSecurityDescriptorDacl.Addr(), 4, uintptr(unsafe.Pointer(sd)), uintptr(unsafe.Pointer(&_p0)), uintptr(unsafe.Pointer(dacl)), uintptr(unsafe.Pointer(&_p1)), 0, 0)
|
||||||
*daclPresent = _p0 != 0
|
*daclPresent = _p0 != 0
|
||||||
|
@ -3836,14 +3820,10 @@ func getSecurityDescriptorSacl(sd *SECURITY_DESCRIPTOR, saclPresent *bool, sacl
|
||||||
var _p0 uint32
|
var _p0 uint32
|
||||||
if *saclPresent {
|
if *saclPresent {
|
||||||
_p0 = 1
|
_p0 = 1
|
||||||
} else {
|
|
||||||
_p0 = 0
|
|
||||||
}
|
}
|
||||||
var _p1 uint32
|
var _p1 uint32
|
||||||
if *saclDefaulted {
|
if *saclDefaulted {
|
||||||
_p1 = 1
|
_p1 = 1
|
||||||
} else {
|
|
||||||
_p1 = 0
|
|
||||||
}
|
}
|
||||||
r1, _, e1 := syscall.Syscall6(procGetSecurityDescriptorSacl.Addr(), 4, uintptr(unsafe.Pointer(sd)), uintptr(unsafe.Pointer(&_p0)), uintptr(unsafe.Pointer(sacl)), uintptr(unsafe.Pointer(&_p1)), 0, 0)
|
r1, _, e1 := syscall.Syscall6(procGetSecurityDescriptorSacl.Addr(), 4, uintptr(unsafe.Pointer(sd)), uintptr(unsafe.Pointer(&_p0)), uintptr(unsafe.Pointer(sacl)), uintptr(unsafe.Pointer(&_p1)), 0, 0)
|
||||||
*saclPresent = _p0 != 0
|
*saclPresent = _p0 != 0
|
||||||
|
@ -3862,8 +3842,6 @@ func getSecurityDescriptorOwner(sd *SECURITY_DESCRIPTOR, owner **SID, ownerDefau
|
||||||
var _p0 uint32
|
var _p0 uint32
|
||||||
if *ownerDefaulted {
|
if *ownerDefaulted {
|
||||||
_p0 = 1
|
_p0 = 1
|
||||||
} else {
|
|
||||||
_p0 = 0
|
|
||||||
}
|
}
|
||||||
r1, _, e1 := syscall.Syscall(procGetSecurityDescriptorOwner.Addr(), 3, uintptr(unsafe.Pointer(sd)), uintptr(unsafe.Pointer(owner)), uintptr(unsafe.Pointer(&_p0)))
|
r1, _, e1 := syscall.Syscall(procGetSecurityDescriptorOwner.Addr(), 3, uintptr(unsafe.Pointer(sd)), uintptr(unsafe.Pointer(owner)), uintptr(unsafe.Pointer(&_p0)))
|
||||||
*ownerDefaulted = _p0 != 0
|
*ownerDefaulted = _p0 != 0
|
||||||
|
@ -3881,8 +3859,6 @@ func getSecurityDescriptorGroup(sd *SECURITY_DESCRIPTOR, group **SID, groupDefau
|
||||||
var _p0 uint32
|
var _p0 uint32
|
||||||
if *groupDefaulted {
|
if *groupDefaulted {
|
||||||
_p0 = 1
|
_p0 = 1
|
||||||
} else {
|
|
||||||
_p0 = 0
|
|
||||||
}
|
}
|
||||||
r1, _, e1 := syscall.Syscall(procGetSecurityDescriptorGroup.Addr(), 3, uintptr(unsafe.Pointer(sd)), uintptr(unsafe.Pointer(group)), uintptr(unsafe.Pointer(&_p0)))
|
r1, _, e1 := syscall.Syscall(procGetSecurityDescriptorGroup.Addr(), 3, uintptr(unsafe.Pointer(sd)), uintptr(unsafe.Pointer(group)), uintptr(unsafe.Pointer(&_p0)))
|
||||||
*groupDefaulted = _p0 != 0
|
*groupDefaulted = _p0 != 0
|
||||||
|
@ -3932,14 +3908,10 @@ func setSecurityDescriptorDacl(sd *SECURITY_DESCRIPTOR, daclPresent bool, dacl *
|
||||||
var _p0 uint32
|
var _p0 uint32
|
||||||
if daclPresent {
|
if daclPresent {
|
||||||
_p0 = 1
|
_p0 = 1
|
||||||
} else {
|
|
||||||
_p0 = 0
|
|
||||||
}
|
}
|
||||||
var _p1 uint32
|
var _p1 uint32
|
||||||
if daclDefaulted {
|
if daclDefaulted {
|
||||||
_p1 = 1
|
_p1 = 1
|
||||||
} else {
|
|
||||||
_p1 = 0
|
|
||||||
}
|
}
|
||||||
r1, _, e1 := syscall.Syscall6(procSetSecurityDescriptorDacl.Addr(), 4, uintptr(unsafe.Pointer(sd)), uintptr(_p0), uintptr(unsafe.Pointer(dacl)), uintptr(_p1), 0, 0)
|
r1, _, e1 := syscall.Syscall6(procSetSecurityDescriptorDacl.Addr(), 4, uintptr(unsafe.Pointer(sd)), uintptr(_p0), uintptr(unsafe.Pointer(dacl)), uintptr(_p1), 0, 0)
|
||||||
if r1 == 0 {
|
if r1 == 0 {
|
||||||
|
@ -3956,14 +3928,10 @@ func setSecurityDescriptorSacl(sd *SECURITY_DESCRIPTOR, saclPresent bool, sacl *
|
||||||
var _p0 uint32
|
var _p0 uint32
|
||||||
if saclPresent {
|
if saclPresent {
|
||||||
_p0 = 1
|
_p0 = 1
|
||||||
} else {
|
|
||||||
_p0 = 0
|
|
||||||
}
|
}
|
||||||
var _p1 uint32
|
var _p1 uint32
|
||||||
if saclDefaulted {
|
if saclDefaulted {
|
||||||
_p1 = 1
|
_p1 = 1
|
||||||
} else {
|
|
||||||
_p1 = 0
|
|
||||||
}
|
}
|
||||||
r1, _, e1 := syscall.Syscall6(procSetSecurityDescriptorSacl.Addr(), 4, uintptr(unsafe.Pointer(sd)), uintptr(_p0), uintptr(unsafe.Pointer(sacl)), uintptr(_p1), 0, 0)
|
r1, _, e1 := syscall.Syscall6(procSetSecurityDescriptorSacl.Addr(), 4, uintptr(unsafe.Pointer(sd)), uintptr(_p0), uintptr(unsafe.Pointer(sacl)), uintptr(_p1), 0, 0)
|
||||||
if r1 == 0 {
|
if r1 == 0 {
|
||||||
|
@ -3980,8 +3948,6 @@ func setSecurityDescriptorOwner(sd *SECURITY_DESCRIPTOR, owner *SID, ownerDefaul
|
||||||
var _p0 uint32
|
var _p0 uint32
|
||||||
if ownerDefaulted {
|
if ownerDefaulted {
|
||||||
_p0 = 1
|
_p0 = 1
|
||||||
} else {
|
|
||||||
_p0 = 0
|
|
||||||
}
|
}
|
||||||
r1, _, e1 := syscall.Syscall(procSetSecurityDescriptorOwner.Addr(), 3, uintptr(unsafe.Pointer(sd)), uintptr(unsafe.Pointer(owner)), uintptr(_p0))
|
r1, _, e1 := syscall.Syscall(procSetSecurityDescriptorOwner.Addr(), 3, uintptr(unsafe.Pointer(sd)), uintptr(unsafe.Pointer(owner)), uintptr(_p0))
|
||||||
if r1 == 0 {
|
if r1 == 0 {
|
||||||
|
@ -3998,8 +3964,6 @@ func setSecurityDescriptorGroup(sd *SECURITY_DESCRIPTOR, group *SID, groupDefaul
|
||||||
var _p0 uint32
|
var _p0 uint32
|
||||||
if groupDefaulted {
|
if groupDefaulted {
|
||||||
_p0 = 1
|
_p0 = 1
|
||||||
} else {
|
|
||||||
_p0 = 0
|
|
||||||
}
|
}
|
||||||
r1, _, e1 := syscall.Syscall(procSetSecurityDescriptorGroup.Addr(), 3, uintptr(unsafe.Pointer(sd)), uintptr(unsafe.Pointer(group)), uintptr(_p0))
|
r1, _, e1 := syscall.Syscall(procSetSecurityDescriptorGroup.Addr(), 3, uintptr(unsafe.Pointer(sd)), uintptr(unsafe.Pointer(group)), uintptr(_p0))
|
||||||
if r1 == 0 {
|
if r1 == 0 {
|
||||||
|
|
16
vendor/modules.txt
vendored
16
vendor/modules.txt
vendored
|
@ -16,10 +16,10 @@ github.com/VictoriaMetrics/fasthttp/fasthttputil
|
||||||
github.com/VictoriaMetrics/fasthttp/stackless
|
github.com/VictoriaMetrics/fasthttp/stackless
|
||||||
# github.com/VictoriaMetrics/metrics v1.12.3
|
# github.com/VictoriaMetrics/metrics v1.12.3
|
||||||
github.com/VictoriaMetrics/metrics
|
github.com/VictoriaMetrics/metrics
|
||||||
# github.com/VictoriaMetrics/metricsql v0.7.0
|
# github.com/VictoriaMetrics/metricsql v0.7.1
|
||||||
github.com/VictoriaMetrics/metricsql
|
github.com/VictoriaMetrics/metricsql
|
||||||
github.com/VictoriaMetrics/metricsql/binaryop
|
github.com/VictoriaMetrics/metricsql/binaryop
|
||||||
# github.com/aws/aws-sdk-go v1.35.3
|
# github.com/aws/aws-sdk-go v1.35.5
|
||||||
github.com/aws/aws-sdk-go/aws
|
github.com/aws/aws-sdk-go/aws
|
||||||
github.com/aws/aws-sdk-go/aws/arn
|
github.com/aws/aws-sdk-go/aws/arn
|
||||||
github.com/aws/aws-sdk-go/aws/awserr
|
github.com/aws/aws-sdk-go/aws/awserr
|
||||||
|
@ -156,7 +156,7 @@ github.com/valyala/gozstd
|
||||||
github.com/valyala/histogram
|
github.com/valyala/histogram
|
||||||
# github.com/valyala/quicktemplate v1.6.3
|
# github.com/valyala/quicktemplate v1.6.3
|
||||||
github.com/valyala/quicktemplate
|
github.com/valyala/quicktemplate
|
||||||
# go.opencensus.io v0.22.4
|
# go.opencensus.io v0.22.5
|
||||||
go.opencensus.io
|
go.opencensus.io
|
||||||
go.opencensus.io/internal
|
go.opencensus.io/internal
|
||||||
go.opencensus.io/internal/tagencoding
|
go.opencensus.io/internal/tagencoding
|
||||||
|
@ -181,7 +181,7 @@ golang.org/x/lint/golint
|
||||||
# golang.org/x/mod v0.3.0
|
# golang.org/x/mod v0.3.0
|
||||||
golang.org/x/mod/module
|
golang.org/x/mod/module
|
||||||
golang.org/x/mod/semver
|
golang.org/x/mod/semver
|
||||||
# golang.org/x/net v0.0.0-20201002202402-0a1ea396d57c
|
# golang.org/x/net v0.0.0-20201006153459-a7d1128ccaa0
|
||||||
golang.org/x/net/context
|
golang.org/x/net/context
|
||||||
golang.org/x/net/context/ctxhttp
|
golang.org/x/net/context/ctxhttp
|
||||||
golang.org/x/net/http/httpguts
|
golang.org/x/net/http/httpguts
|
||||||
|
@ -196,9 +196,9 @@ golang.org/x/oauth2/google
|
||||||
golang.org/x/oauth2/internal
|
golang.org/x/oauth2/internal
|
||||||
golang.org/x/oauth2/jws
|
golang.org/x/oauth2/jws
|
||||||
golang.org/x/oauth2/jwt
|
golang.org/x/oauth2/jwt
|
||||||
# golang.org/x/sync v0.0.0-20200930132711-30421366ff76
|
# golang.org/x/sync v0.0.0-20201008141435-b3e1573b7520
|
||||||
golang.org/x/sync/errgroup
|
golang.org/x/sync/errgroup
|
||||||
# golang.org/x/sys v0.0.0-20201005172224-997123666555
|
# golang.org/x/sys v0.0.0-20201008064518-c1f3e3309c71
|
||||||
golang.org/x/sys/internal/unsafeheader
|
golang.org/x/sys/internal/unsafeheader
|
||||||
golang.org/x/sys/unix
|
golang.org/x/sys/unix
|
||||||
golang.org/x/sys/windows
|
golang.org/x/sys/windows
|
||||||
|
@ -207,7 +207,7 @@ golang.org/x/text/secure/bidirule
|
||||||
golang.org/x/text/transform
|
golang.org/x/text/transform
|
||||||
golang.org/x/text/unicode/bidi
|
golang.org/x/text/unicode/bidi
|
||||||
golang.org/x/text/unicode/norm
|
golang.org/x/text/unicode/norm
|
||||||
# golang.org/x/tools v0.0.0-20201005185003-576e169c3de7
|
# golang.org/x/tools v0.0.0-20201008025239-9df69603baec
|
||||||
golang.org/x/tools/cmd/goimports
|
golang.org/x/tools/cmd/goimports
|
||||||
golang.org/x/tools/go/ast/astutil
|
golang.org/x/tools/go/ast/astutil
|
||||||
golang.org/x/tools/go/gcexportdata
|
golang.org/x/tools/go/gcexportdata
|
||||||
|
@ -248,7 +248,7 @@ google.golang.org/appengine/internal/modules
|
||||||
google.golang.org/appengine/internal/remote_api
|
google.golang.org/appengine/internal/remote_api
|
||||||
google.golang.org/appengine/internal/urlfetch
|
google.golang.org/appengine/internal/urlfetch
|
||||||
google.golang.org/appengine/urlfetch
|
google.golang.org/appengine/urlfetch
|
||||||
# google.golang.org/genproto v0.0.0-20201006033701-bcad7cf615f2
|
# google.golang.org/genproto v0.0.0-20201008135153-289734e2e40c
|
||||||
google.golang.org/genproto/googleapis/api/annotations
|
google.golang.org/genproto/googleapis/api/annotations
|
||||||
google.golang.org/genproto/googleapis/iam/v1
|
google.golang.org/genproto/googleapis/iam/v1
|
||||||
google.golang.org/genproto/googleapis/rpc/code
|
google.golang.org/genproto/googleapis/rpc/code
|
||||||
|
|
Loading…
Reference in a new issue