mirror of
https://github.com/openfaas/faas.git
synced 2025-06-08 16:26:47 +00:00
Updates for NATS Streaming support
NATS Streaming is deprecated and will be removed from OpenFaaS CE in a future release for security reasons. Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
This commit is contained in:
parent
8e1c34e222
commit
c26ec5221e
@ -6,11 +6,11 @@ require (
|
|||||||
github.com/docker/distribution v2.8.1+incompatible
|
github.com/docker/distribution v2.8.1+incompatible
|
||||||
github.com/gorilla/mux v1.8.0
|
github.com/gorilla/mux v1.8.0
|
||||||
github.com/openfaas/faas-provider v0.19.1
|
github.com/openfaas/faas-provider v0.19.1
|
||||||
github.com/openfaas/nats-queue-worker v0.0.0-20220805080536-d1d72d857b1c
|
github.com/openfaas/nats-queue-worker v0.0.0-20230117214128-3615ccb286cc
|
||||||
github.com/prometheus/client_golang v1.13.0
|
github.com/prometheus/client_golang v1.13.0
|
||||||
github.com/prometheus/client_model v0.2.0
|
github.com/prometheus/client_model v0.2.0
|
||||||
go.uber.org/goleak v1.1.12
|
go.uber.org/goleak v1.1.12
|
||||||
golang.org/x/sync v0.0.0-20220819030929-7fc1605a5dde
|
golang.org/x/sync v0.1.0
|
||||||
)
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
@ -19,13 +19,16 @@ require (
|
|||||||
github.com/gogo/protobuf v1.3.2 // indirect
|
github.com/gogo/protobuf v1.3.2 // indirect
|
||||||
github.com/golang/protobuf v1.5.2 // indirect
|
github.com/golang/protobuf v1.5.2 // indirect
|
||||||
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
|
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
|
||||||
github.com/nats-io/nats.go v1.11.1-0.20210623165838-4b75fc59ae30 // indirect
|
github.com/nats-io/nats-server/v2 v2.9.11 // indirect
|
||||||
|
github.com/nats-io/nats-streaming-server v0.25.3 // indirect
|
||||||
|
github.com/nats-io/nats.go v1.22.1 // indirect
|
||||||
github.com/nats-io/nkeys v0.3.0 // indirect
|
github.com/nats-io/nkeys v0.3.0 // indirect
|
||||||
github.com/nats-io/nuid v1.0.1 // indirect
|
github.com/nats-io/nuid v1.0.1 // indirect
|
||||||
github.com/nats-io/stan.go v0.9.0 // indirect
|
github.com/nats-io/stan.go v0.10.4 // indirect
|
||||||
github.com/prometheus/common v0.37.0 // indirect
|
github.com/prometheus/common v0.37.0 // indirect
|
||||||
github.com/prometheus/procfs v0.8.0 // indirect
|
github.com/prometheus/procfs v0.8.0 // indirect
|
||||||
golang.org/x/crypto v0.0.0-20220817201139-bc19a97f63c8 // indirect
|
github.com/stretchr/testify v1.7.1 // indirect
|
||||||
golang.org/x/sys v0.0.0-20220823224334-20c2bfdbfe24 // indirect
|
golang.org/x/crypto v0.5.0 // indirect
|
||||||
|
golang.org/x/sys v0.4.1-0.20230105183443-b8be2fde2a9e // indirect
|
||||||
google.golang.org/protobuf v1.28.1 // indirect
|
google.golang.org/protobuf v1.28.1 // indirect
|
||||||
)
|
)
|
||||||
|
102
gateway/go.sum
102
gateway/go.sum
@ -78,7 +78,7 @@ github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9
|
|||||||
github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk=
|
github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk=
|
||||||
github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A=
|
github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A=
|
||||||
github.com/go-logfmt/logfmt v0.5.1/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs=
|
github.com/go-logfmt/logfmt v0.5.1/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs=
|
||||||
github.com/go-sql-driver/mysql v1.6.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg=
|
github.com/go-sql-driver/mysql v1.7.0/go.mod h1:OXbVy3sEdcQ2Doequ6Z5BW6fXNQTmx+9S1MCJN5yJMI=
|
||||||
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
|
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
|
||||||
github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
|
github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
|
||||||
github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
|
github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
|
||||||
@ -141,8 +141,8 @@ github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI=
|
|||||||
github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So=
|
github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So=
|
||||||
github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
|
github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
|
||||||
github.com/hashicorp/go-hclog v0.9.1/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ=
|
github.com/hashicorp/go-hclog v0.9.1/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ=
|
||||||
github.com/hashicorp/go-hclog v0.16.1 h1:IVQwpTGNRRIHafnTs2dQLIk4ENtneRIEEJWOVDqz99o=
|
github.com/hashicorp/go-hclog v1.1.0 h1:QsGcniKx5/LuX2eYoeL+Np3UKYPNaN7YKpTh29h8rbw=
|
||||||
github.com/hashicorp/go-hclog v0.16.1/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ=
|
github.com/hashicorp/go-hclog v1.1.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ=
|
||||||
github.com/hashicorp/go-immutable-radix v1.0.0 h1:AKDB1HM5PWEA7i4nhcpwOrO2byshxBjXVn/J/3+z5/0=
|
github.com/hashicorp/go-immutable-radix v1.0.0 h1:AKDB1HM5PWEA7i4nhcpwOrO2byshxBjXVn/J/3+z5/0=
|
||||||
github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60=
|
github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60=
|
||||||
github.com/hashicorp/go-msgpack v0.5.5/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM=
|
github.com/hashicorp/go-msgpack v0.5.5/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM=
|
||||||
@ -153,8 +153,8 @@ github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/b
|
|||||||
github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
|
github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
|
||||||
github.com/hashicorp/golang-lru v0.5.1 h1:0hERBMJE1eitiLkihrMvRVBYAkpHzc/J3QdDN+dAcgU=
|
github.com/hashicorp/golang-lru v0.5.1 h1:0hERBMJE1eitiLkihrMvRVBYAkpHzc/J3QdDN+dAcgU=
|
||||||
github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
|
github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
|
||||||
github.com/hashicorp/raft v1.3.1 h1:zDT8ke8y2aP4wf9zPTB2uSIeavJ3Hx/ceY4jxI2JxuY=
|
github.com/hashicorp/raft v1.3.11 h1:p3v6gf6l3S797NnK5av3HcczOC1T5CLoaRvg0g9ys4A=
|
||||||
github.com/hashicorp/raft v1.3.1/go.mod h1:4Ak7FSPnuvmb0GV6vgIAJ4vYT4bek9bb6Q+7HVbyzqM=
|
github.com/hashicorp/raft v1.3.11/go.mod h1:J8naEwc6XaaCfts7+28whSeRvCqTd6e20BlCU3LtEO4=
|
||||||
github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
|
github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
|
||||||
github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4=
|
github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4=
|
||||||
github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
|
github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
|
||||||
@ -167,15 +167,15 @@ github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7V
|
|||||||
github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM=
|
github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM=
|
||||||
github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
|
github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
|
||||||
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
|
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
|
||||||
github.com/klauspost/compress v1.11.12 h1:famVnQVu7QwryBN4jNseQdUKES71ZAOnB6UQQJPZvqk=
|
github.com/klauspost/compress v1.15.11 h1:Lcadnb3RKGin4FYM/orgq0qde+nc15E5Cbqg4B9Sx9c=
|
||||||
github.com/klauspost/compress v1.11.12/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs=
|
github.com/klauspost/compress v1.15.11/go.mod h1:QPwzmACJjUTFsnSHH934V6woptycfrDDJnH7hvFVbGM=
|
||||||
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
|
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
|
||||||
github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
|
github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
|
||||||
github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=
|
github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=
|
||||||
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
|
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
|
||||||
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
|
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
|
||||||
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
|
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
|
||||||
github.com/lib/pq v1.10.2/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
|
github.com/lib/pq v1.10.4/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
|
||||||
github.com/mattn/go-colorable v0.1.4 h1:snbPLB8fVfU9iwbbo30TPtbLRzwWu6aJS6Xh4eaaviA=
|
github.com/mattn/go-colorable v0.1.4 h1:snbPLB8fVfU9iwbbo30TPtbLRzwWu6aJS6Xh4eaaviA=
|
||||||
github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
|
github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
|
||||||
github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
|
github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
|
||||||
@ -183,8 +183,8 @@ github.com/mattn/go-isatty v0.0.10 h1:qxFzApOv4WsAL965uUPIsXzAKCZxN2p9UqdhFS4ZW1
|
|||||||
github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcMEpPG5Rm84=
|
github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcMEpPG5Rm84=
|
||||||
github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU=
|
github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU=
|
||||||
github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
|
github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
|
||||||
github.com/minio/highwayhash v1.0.1 h1:dZ6IIu8Z14VlC0VpfKofAhCy74wu/Qb5gcn52yWoz/0=
|
github.com/minio/highwayhash v1.0.2 h1:Aak5U0nElisjDCfPSG79Tgzkn2gl66NxOMspRrKnA/g=
|
||||||
github.com/minio/highwayhash v1.0.1/go.mod h1:BQskDq+xkJ12lmlUUi7U0M5Swg3EWR+dLTk+kldvVxY=
|
github.com/minio/highwayhash v1.0.2/go.mod h1:BQskDq+xkJ12lmlUUi7U0M5Swg3EWR+dLTk+kldvVxY=
|
||||||
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
|
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
|
||||||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
|
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
|
||||||
github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
|
github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
|
||||||
@ -192,43 +192,38 @@ github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3Rllmb
|
|||||||
github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
|
github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
|
||||||
github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
|
github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
|
||||||
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
|
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
|
||||||
github.com/nats-io/jwt v1.2.2 h1:w3GMTO969dFg+UOKTmmyuu7IGdusK+7Ytlt//OYH/uU=
|
github.com/nats-io/jwt/v2 v2.3.0 h1:z2mA1a7tIf5ShggOFlR1oBPgd6hGqcDYsISxZByUzdI=
|
||||||
github.com/nats-io/jwt v1.2.2/go.mod h1:/xX356yQA6LuXI9xWW7mZNpxgF2mBmGecH+Fj34sP5Q=
|
github.com/nats-io/jwt/v2 v2.3.0/go.mod h1:0tqz9Hlu6bCBFLWAASKhE5vUA4c24L9KPUUgvwumE/k=
|
||||||
github.com/nats-io/jwt/v2 v2.0.2 h1:ejVCLO8gu6/4bOKIHQpmB5UhhUJfAQw55yvLWpfmKjI=
|
github.com/nats-io/nats-server/v2 v2.9.11 h1:4y5SwWvWI59V5mcqtuoqKq6L9NDUydOP3Ekwuwl8cZI=
|
||||||
github.com/nats-io/jwt/v2 v2.0.2/go.mod h1:VRP+deawSXyhNjXmxPCHskrR6Mq50BqpEI5SEcNiGlY=
|
github.com/nats-io/nats-server/v2 v2.9.11/go.mod h1:b0oVuxSlkvS3ZjMkncFeACGyZohbO4XhSqW1Lt7iRRY=
|
||||||
github.com/nats-io/nats-server/v2 v2.2.6/go.mod h1:sEnFaxqe09cDmfMgACxZbziXnhQFhwk+aKkZjBBRYrI=
|
github.com/nats-io/nats-streaming-server v0.25.3 h1:A9dmf4fMIxFPBGqgwePljWsBePMEjl3ugsIwK6F2wow=
|
||||||
github.com/nats-io/nats-server/v2 v2.3.2 h1:SGJLWrjBHsl0DsdY8PeTR3YKEfiUEYVVq2STw9d8MSY=
|
github.com/nats-io/nats-streaming-server v0.25.3/go.mod h1:0Cyht7y75el3if3Qdq31OPc/TNjVwzglMPz04Hn77kk=
|
||||||
github.com/nats-io/nats-server/v2 v2.3.2/go.mod h1:dUf7Cm5z5LbciFVwWx54owyCKm8x4/hL6p7rrljhLFY=
|
github.com/nats-io/nats.go v1.19.0/go.mod h1:tLqubohF7t4z3du1QDPYJIQQyhb4wl6DhjxEajSI7UA=
|
||||||
github.com/nats-io/nats-streaming-server v0.22.0 h1:2egnq86o9roTqUfELlqykf7ZZkNvRsXjVf4EbaLysHo=
|
github.com/nats-io/nats.go v1.22.1 h1:XzfqDspY0RNufzdrB8c4hFR+R3dahkxlpWe5+IWJzbE=
|
||||||
github.com/nats-io/nats-streaming-server v0.22.0/go.mod h1:Jyu3eUQaUAjwd5TiBuLagKdQRofPrHoIXt1kL0U/e5o=
|
github.com/nats-io/nats.go v1.22.1/go.mod h1:tLqubohF7t4z3du1QDPYJIQQyhb4wl6DhjxEajSI7UA=
|
||||||
github.com/nats-io/nats.go v1.11.0/go.mod h1:BPko4oXsySz4aSWeFgOHLZs3G4Jq4ZAyE6/zMCxRT6w=
|
|
||||||
github.com/nats-io/nats.go v1.11.1-0.20210623165838-4b75fc59ae30 h1:9GqilBhZaR3xYis0JgMlJjNw933WIobdjKhilXm+Vls=
|
|
||||||
github.com/nats-io/nats.go v1.11.1-0.20210623165838-4b75fc59ae30/go.mod h1:BPko4oXsySz4aSWeFgOHLZs3G4Jq4ZAyE6/zMCxRT6w=
|
|
||||||
github.com/nats-io/nkeys v0.2.0/go.mod h1:XdZpAbhgyyODYqjTawOnIOI7VlbKSarI9Gfy1tqEu/s=
|
|
||||||
github.com/nats-io/nkeys v0.3.0 h1:cgM5tL53EvYRU+2YLXIK0G2mJtK12Ft9oeooSZMA2G8=
|
github.com/nats-io/nkeys v0.3.0 h1:cgM5tL53EvYRU+2YLXIK0G2mJtK12Ft9oeooSZMA2G8=
|
||||||
github.com/nats-io/nkeys v0.3.0/go.mod h1:gvUNGjVcM2IPr5rCsRsC6Wb3Hr2CQAm08dsxtV6A5y4=
|
github.com/nats-io/nkeys v0.3.0/go.mod h1:gvUNGjVcM2IPr5rCsRsC6Wb3Hr2CQAm08dsxtV6A5y4=
|
||||||
github.com/nats-io/nuid v1.0.1 h1:5iA8DT8V7q8WK2EScv2padNa/rTESc1KdnPw4TC2paw=
|
github.com/nats-io/nuid v1.0.1 h1:5iA8DT8V7q8WK2EScv2padNa/rTESc1KdnPw4TC2paw=
|
||||||
github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c=
|
github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c=
|
||||||
github.com/nats-io/stan.go v0.9.0 h1:TB73Y31au++0sU0VmnBy2pYkSrwH0zUFNRB9YePHqC4=
|
github.com/nats-io/stan.go v0.10.4 h1:19GS/eD1SeQJaVkeM9EkvEYattnvnWrZ3wkSWSw4uXw=
|
||||||
github.com/nats-io/stan.go v0.9.0/go.mod h1:0jEuBXKauB1HHJswHM/lx05K48TJ1Yxj6VIfM4k+aB4=
|
github.com/nats-io/stan.go v0.10.4/go.mod h1:3XJXH8GagrGqajoO/9+HgPyKV5MWsv7S5ccdda+pc6k=
|
||||||
github.com/openfaas/faas-provider v0.18.6/go.mod h1:fq1JL0mX4rNvVVvRLaLRJ3H6o667sHuyP5p/7SZEe98=
|
|
||||||
github.com/openfaas/faas-provider v0.19.1 h1:xH8lTWabfDZwzIvC0u1AO48ghD3BNw6Vo231DLqTeI0=
|
github.com/openfaas/faas-provider v0.19.1 h1:xH8lTWabfDZwzIvC0u1AO48ghD3BNw6Vo231DLqTeI0=
|
||||||
github.com/openfaas/faas-provider v0.19.1/go.mod h1:Farrp+9Med8LeK3aoYpqplMP8f5ebTILbCSLg2LPLZk=
|
github.com/openfaas/faas-provider v0.19.1/go.mod h1:Farrp+9Med8LeK3aoYpqplMP8f5ebTILbCSLg2LPLZk=
|
||||||
github.com/openfaas/nats-queue-worker v0.0.0-20220805080536-d1d72d857b1c h1:ZVpAJIpDdHkX5NGdz49kCzyvG+H+S/KvMAVVfZAN8EI=
|
github.com/openfaas/nats-queue-worker v0.0.0-20230117214128-3615ccb286cc h1:qMcVTwdbRAqZtQrYS9rvUxnbQY6nmqf7CIsjp7A+cOo=
|
||||||
github.com/openfaas/nats-queue-worker v0.0.0-20220805080536-d1d72d857b1c/go.mod h1:ajlN2z+D8JPBq3kWNv4WLT6mtKPqlgeE3dYEx39d1tk=
|
github.com/openfaas/nats-queue-worker v0.0.0-20230117214128-3615ccb286cc/go.mod h1:s86POyW6C8S4CALFRhO8ax5sR2uaQUJQ0HaQGvbTpTc=
|
||||||
github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
|
github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
|
||||||
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||||
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||||
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
||||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||||
|
github.com/prashantv/gostub v1.1.0/go.mod h1:A5zLQHz7ieHGG7is6LLXLz7I8+3LZzsrV0P1IAHhP5U=
|
||||||
github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
|
github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
|
||||||
github.com/prometheus/client_golang v0.9.2/go.mod h1:OsXs2jCmiKlQ1lTBmv21f2mNfw4xf/QclQDMrYNZzcM=
|
github.com/prometheus/client_golang v0.9.2/go.mod h1:OsXs2jCmiKlQ1lTBmv21f2mNfw4xf/QclQDMrYNZzcM=
|
||||||
github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo=
|
github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo=
|
||||||
github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M=
|
github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M=
|
||||||
github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0=
|
github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0=
|
||||||
github.com/prometheus/client_golang v1.12.1/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY=
|
github.com/prometheus/client_golang v1.12.1/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY=
|
||||||
github.com/prometheus/client_golang v1.12.2/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY=
|
|
||||||
github.com/prometheus/client_golang v1.13.0 h1:b71QUfeo5M8gq2+evJdTPfZhYMAU0uKPkyPJ7TPsloU=
|
github.com/prometheus/client_golang v1.13.0 h1:b71QUfeo5M8gq2+evJdTPfZhYMAU0uKPkyPJ7TPsloU=
|
||||||
github.com/prometheus/client_golang v1.13.0/go.mod h1:vTeo+zgvILHsnnj/39Ou/1fPN5nJFOEMgftOUOmlvYQ=
|
github.com/prometheus/client_golang v1.13.0/go.mod h1:vTeo+zgvILHsnnj/39Ou/1fPN5nJFOEMgftOUOmlvYQ=
|
||||||
github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo=
|
github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo=
|
||||||
@ -260,23 +255,24 @@ github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+
|
|||||||
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
|
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
|
||||||
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
|
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
|
||||||
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
|
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
|
||||||
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
|
|
||||||
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
|
|
||||||
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||||
|
github.com/stretchr/testify v1.7.1 h1:5TQK59W5E3v0r2duFAb7P95B6hEeOyEnHRa8MjYSMTY=
|
||||||
|
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||||
github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM=
|
github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM=
|
||||||
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||||
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||||
github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||||
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||||
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
|
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
|
||||||
go.etcd.io/bbolt v1.3.5 h1:XAzx9gjCb0Rxj7EoqcClPD1d5ZBxZJk0jbuoPHenBt0=
|
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
|
||||||
go.etcd.io/bbolt v1.3.5/go.mod h1:G5EMThwa9y8QZGBClrRx5EY+Yw9kAhnjy3bSjsnlVTQ=
|
go.etcd.io/bbolt v1.3.6 h1:/ecaJf0sk1l4l6V4awd65v2C3ILy7MSj+s/x1ADCIMU=
|
||||||
|
go.etcd.io/bbolt v1.3.6/go.mod h1:qXsaaIqmgQH0T+OPdb99Bf+PKfBBQVAdyD6TY9G8XM4=
|
||||||
go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU=
|
go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU=
|
||||||
go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8=
|
go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8=
|
||||||
go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
|
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/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
|
go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
|
||||||
go.uber.org/goleak v1.1.0/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A=
|
go.uber.org/automaxprocs v1.5.1/go.mod h1:BF4eumQw0P9GtnuxxovUd06vwm1o18oMzFtK66vU6XU=
|
||||||
go.uber.org/goleak v1.1.12 h1:gZAh5/EyT/HQwlpkCy6wTpqfH9H8Lz8zbm3dZh+OyzA=
|
go.uber.org/goleak v1.1.12 h1:gZAh5/EyT/HQwlpkCy6wTpqfH9H8Lz8zbm3dZh+OyzA=
|
||||||
go.uber.org/goleak v1.1.12/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ=
|
go.uber.org/goleak v1.1.12/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ=
|
||||||
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
|
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
|
||||||
@ -284,13 +280,11 @@ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACk
|
|||||||
golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||||
golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||||
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||||
golang.org/x/crypto v0.0.0-20200323165209-0ec3e9974c59/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
|
|
||||||
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
|
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
|
||||||
golang.org/x/crypto v0.0.0-20210314154223-e6e6c4f2bb5b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4=
|
golang.org/x/crypto v0.0.0-20210314154223-e6e6c4f2bb5b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4=
|
||||||
golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a/go.mod h1:P+XmwS30IXTQdn5tA2iutPOUgjI07+tq3H3K9MVA1s8=
|
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
||||||
golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
golang.org/x/crypto v0.5.0 h1:U/0M97KRkSFvyD/3FSmdP5W5swImpNgle/EHFhOsQPE=
|
||||||
golang.org/x/crypto v0.0.0-20220817201139-bc19a97f63c8 h1:GIAS/yBem/gq2MUqgNIzUHW7cJMmx3TGZOrnyYaNQ6c=
|
golang.org/x/crypto v0.5.0/go.mod h1:NK/OQwhpMQP3MwtdjgLlYHnH9ebylxKWv3e0fK+mkQU=
|
||||||
golang.org/x/crypto v0.0.0-20220817201139-bc19a97f63c8/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
|
|
||||||
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||||
golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||||
golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
|
golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
|
||||||
@ -323,6 +317,7 @@ golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzB
|
|||||||
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||||
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||||
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||||
|
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
|
||||||
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||||
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||||
golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||||
@ -356,9 +351,10 @@ golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwY
|
|||||||
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
|
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
|
||||||
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
|
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
|
||||||
golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
||||||
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
|
||||||
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
||||||
golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
||||||
|
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
|
||||||
|
golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws=
|
||||||
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=
|
||||||
@ -378,8 +374,9 @@ golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJ
|
|||||||
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
golang.org/x/sync v0.0.0-20220819030929-7fc1605a5dde h1:ejfdSekXMDxDLbRrJMwUk6KnSLZ2McaUCVcIKM+N6jc=
|
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
golang.org/x/sync v0.0.0-20220819030929-7fc1605a5dde/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o=
|
||||||
|
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
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=
|
||||||
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
@ -414,22 +411,25 @@ golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7w
|
|||||||
golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20200923182605-d9f96fdee20d/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-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/sys v0.0.0-20210525143221-35b2ab0089ea/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
||||||
golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/sys v0.0.0-20220823224334-20c2bfdbfe24 h1:TyKJRhyo17yWxOMCTHKWrc5rddHORMlnZ/j57umaUd8=
|
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/sys v0.0.0-20220823224334-20c2bfdbfe24/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
|
golang.org/x/sys v0.4.1-0.20230105183443-b8be2fde2a9e h1:Lw2b7QX5zDuEsD5ZkJNRUGEGkLuho3UAKsO25Ucv140=
|
||||||
|
golang.org/x/sys v0.4.1-0.20230105183443-b8be2fde2a9e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
||||||
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
||||||
|
golang.org/x/term v0.4.0/go.mod h1:9P2UbLfCdcvo3p/nzKvsmas4TnlujnuoV9hGgYzW1lQ=
|
||||||
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=
|
||||||
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||||
@ -437,11 +437,12 @@ golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
|
|||||||
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||||
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||||
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
||||||
|
golang.org/x/text v0.6.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
|
||||||
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||||
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||||
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||||
golang.org/x/time v0.0.0-20200416051211-89c76fbcd5d1 h1:NusfzzA6yGQ+ua51ck7E3omNUX/JuqbFSaRGqU8CcLI=
|
golang.org/x/time v0.0.0-20220922220347-f3bd1da661af h1:Yx9k8YCG3dvF87UAn2tu2HQLf2dt/eR1bXxpLMWeH+Y=
|
||||||
golang.org/x/time v0.0.0-20200416051211-89c76fbcd5d1/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
golang.org/x/time v0.0.0-20220922220347-f3bd1da661af/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||||
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||||
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||||
golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
|
golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
|
||||||
@ -458,7 +459,6 @@ golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgw
|
|||||||
golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||||
golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||||
golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||||
golang.org/x/tools v0.0.0-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
|
||||||
golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||||
golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||||
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||||
@ -486,8 +486,9 @@ golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc
|
|||||||
golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
|
golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
|
||||||
golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
|
golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
|
||||||
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||||
golang.org/x/tools v0.1.5 h1:ouewzE6p+/VEB31YYnTbEJdi8pFqKp4P4n85vwo3DHA=
|
|
||||||
golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
|
golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
|
||||||
|
golang.org/x/tools v0.1.12 h1:VveCTK38A2rkS8ZqFY25HIDFscX5X9OoEhJd3quQmXU=
|
||||||
|
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
|
||||||
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=
|
||||||
@ -580,8 +581,9 @@ gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
|||||||
gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||||
gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||||
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
|
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
|
||||||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
|
|
||||||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||||
|
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo=
|
||||||
|
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||||
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||||
honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||||
honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||||
|
@ -6,6 +6,7 @@ package handlers
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
"strings"
|
"strings"
|
||||||
@ -21,15 +22,16 @@ import (
|
|||||||
// MakeQueuedProxy accepts work onto a queue
|
// MakeQueuedProxy accepts work onto a queue
|
||||||
func MakeQueuedProxy(metrics metrics.MetricOptions, queuer ftypes.RequestQueuer, pathTransformer middleware.URLPathTransformer, defaultNS string, functionQuery scaling.FunctionQuery) http.HandlerFunc {
|
func MakeQueuedProxy(metrics metrics.MetricOptions, queuer ftypes.RequestQueuer, pathTransformer middleware.URLPathTransformer, defaultNS string, functionQuery scaling.FunctionQuery) http.HandlerFunc {
|
||||||
return func(w http.ResponseWriter, r *http.Request) {
|
return func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
var body []byte
|
||||||
if r.Body != nil {
|
if r.Body != nil {
|
||||||
defer r.Body.Close()
|
defer r.Body.Close()
|
||||||
}
|
|
||||||
|
|
||||||
body, err := ioutil.ReadAll(r.Body)
|
var err error
|
||||||
|
body, err = ioutil.ReadAll(r.Body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
http.Error(w, err.Error(), http.StatusBadRequest)
|
http.Error(w, err.Error(), http.StatusBadRequest)
|
||||||
return
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
callbackURL, err := getCallbackURLHeader(r.Header)
|
callbackURL, err := getCallbackURLHeader(r.Header)
|
||||||
@ -53,8 +55,9 @@ func MakeQueuedProxy(metrics metrics.MetricOptions, queuer ftypes.RequestQueuer,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if err = queuer.Queue(req); err != nil {
|
if err = queuer.Queue(req); err != nil {
|
||||||
fmt.Printf("Queue error: %v\n", err)
|
log.Printf("Error queuing request: %v", err)
|
||||||
http.Error(w, err.Error(), http.StatusInternalServerError)
|
http.Error(w, fmt.Sprintf("Error queuing request: %s", err.Error()),
|
||||||
|
http.StatusInternalServerError)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
5
gateway/vendor/github.com/nats-io/nats.go/.gitignore
generated
vendored
5
gateway/vendor/github.com/nats-io/nats.go/.gitignore
generated
vendored
@ -39,4 +39,7 @@ _testmain.go
|
|||||||
# bin
|
# bin
|
||||||
|
|
||||||
# Goland
|
# Goland
|
||||||
.idea
|
.idea
|
||||||
|
|
||||||
|
# VS Code
|
||||||
|
.vscode
|
26
gateway/vendor/github.com/nats-io/nats.go/.travis.yml
generated
vendored
26
gateway/vendor/github.com/nats-io/nats.go/.travis.yml
generated
vendored
@ -1,19 +1,25 @@
|
|||||||
language: go
|
language: go
|
||||||
go:
|
go:
|
||||||
- 1.16.x
|
- 1.18.x
|
||||||
- 1.15.x
|
- 1.17.x
|
||||||
go_import_path: github.com/nats-io/nats.go
|
go_import_path: github.com/nats-io/nats.go
|
||||||
install:
|
install:
|
||||||
- go get -t ./...
|
- go get -t ./...
|
||||||
- go get github.com/mattn/goveralls
|
- if [[ "$TRAVIS_GO_VERSION" =~ 1.18 ]]; then
|
||||||
- go get github.com/wadey/gocovmerge
|
go install github.com/mattn/goveralls@latest;
|
||||||
- go get -u honnef.co/go/tools/cmd/staticcheck
|
go install github.com/wadey/gocovmerge@latest;
|
||||||
- go get -u github.com/client9/misspell/cmd/misspell
|
go install honnef.co/go/tools/cmd/staticcheck@latest;
|
||||||
|
go install github.com/client9/misspell/cmd/misspell@latest;
|
||||||
|
fi
|
||||||
before_script:
|
before_script:
|
||||||
- $(exit $(go fmt ./... | wc -l))
|
- $(exit $(go fmt ./... | wc -l))
|
||||||
- go vet -modfile=go_test.mod ./...
|
- go vet -modfile=go_test.mod ./...
|
||||||
- find . -type f -name "*.go" | xargs misspell -error -locale US
|
- if [[ "$TRAVIS_GO_VERSION" =~ 1.18 ]]; then
|
||||||
- staticcheck ./...
|
find . -type f -name "*.go" | xargs misspell -error -locale US;
|
||||||
|
GOFLAGS="-mod=mod -modfile=go_test.mod" staticcheck ./...;
|
||||||
|
fi
|
||||||
script:
|
script:
|
||||||
- go test -modfile=go_test.mod -v -run=TestNoRace -p=1 ./... --failfast
|
- go test -modfile=go_test.mod -v -run=TestNoRace -p=1 ./... --failfast -vet=off
|
||||||
- if [[ "$TRAVIS_GO_VERSION" =~ 1.16 ]]; then ./scripts/cov.sh TRAVIS; else go test -modfile=go_test.mod -race -v -p=1 ./... --failfast; fi
|
- if [[ "$TRAVIS_GO_VERSION" =~ 1.18 ]]; then ./scripts/cov.sh TRAVIS; else go test -modfile=go_test.mod -race -v -p=1 ./... --failfast -vet=off; fi
|
||||||
|
after_success:
|
||||||
|
- if [[ "$TRAVIS_GO_VERSION" =~ 1.18 ]]; then $HOME/gopath/bin/goveralls -coverprofile=acc.out -service travis-ci; fi
|
||||||
|
106
gateway/vendor/github.com/nats-io/nats.go/.words
generated
vendored
Normal file
106
gateway/vendor/github.com/nats-io/nats.go/.words
generated
vendored
Normal file
@ -0,0 +1,106 @@
|
|||||||
|
1
|
||||||
|
|
||||||
|
derek
|
||||||
|
dlc
|
||||||
|
ivan
|
||||||
|
|
||||||
|
acknowledgement/SM
|
||||||
|
arity
|
||||||
|
deduplication/S
|
||||||
|
demarshal/SDG
|
||||||
|
durables
|
||||||
|
iff
|
||||||
|
observable/S
|
||||||
|
redelivery/S
|
||||||
|
retransmitting
|
||||||
|
retry/SB
|
||||||
|
|
||||||
|
SlowConsumer
|
||||||
|
|
||||||
|
AppendInt
|
||||||
|
ReadMIMEHeader
|
||||||
|
|
||||||
|
clientProtoZero
|
||||||
|
jetstream
|
||||||
|
v1
|
||||||
|
v2
|
||||||
|
|
||||||
|
ack/SGD
|
||||||
|
auth
|
||||||
|
authToken
|
||||||
|
chans
|
||||||
|
creds
|
||||||
|
config/S
|
||||||
|
cseq
|
||||||
|
impl
|
||||||
|
msgh
|
||||||
|
msgId
|
||||||
|
mux/S
|
||||||
|
nack
|
||||||
|
ptr
|
||||||
|
puback
|
||||||
|
scanf
|
||||||
|
stderr
|
||||||
|
stdout
|
||||||
|
structs
|
||||||
|
tm
|
||||||
|
todo
|
||||||
|
unsub/S
|
||||||
|
|
||||||
|
permessage
|
||||||
|
permessage-deflate
|
||||||
|
urlA
|
||||||
|
urlB
|
||||||
|
websocket
|
||||||
|
ws
|
||||||
|
wss
|
||||||
|
|
||||||
|
NKey
|
||||||
|
pList
|
||||||
|
|
||||||
|
backend/S
|
||||||
|
backoff/S
|
||||||
|
decompressor/CGS
|
||||||
|
inflight
|
||||||
|
inlined
|
||||||
|
lookups
|
||||||
|
reconnection/MS
|
||||||
|
redeliver/ADGS
|
||||||
|
responder/S
|
||||||
|
rewrap/S
|
||||||
|
rollup/S
|
||||||
|
unreceive/DRSZGB
|
||||||
|
variadic
|
||||||
|
wakeup/S
|
||||||
|
whitespace
|
||||||
|
wrap/AS
|
||||||
|
|
||||||
|
omitempty
|
||||||
|
|
||||||
|
apache
|
||||||
|
html
|
||||||
|
ietf
|
||||||
|
www
|
||||||
|
|
||||||
|
sum256
|
||||||
|
32bit/S
|
||||||
|
64bit/S
|
||||||
|
64k
|
||||||
|
128k
|
||||||
|
512k
|
||||||
|
|
||||||
|
hacky
|
||||||
|
handroll/D
|
||||||
|
|
||||||
|
rfc6455
|
||||||
|
rfc7692
|
||||||
|
0x00
|
||||||
|
0xff
|
||||||
|
20x
|
||||||
|
40x
|
||||||
|
50x
|
||||||
|
|
||||||
|
ErrXXX
|
||||||
|
|
||||||
|
atlanta
|
||||||
|
eu
|
25
gateway/vendor/github.com/nats-io/nats.go/.words.readme
generated
vendored
Normal file
25
gateway/vendor/github.com/nats-io/nats.go/.words.readme
generated
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
The .words file is used by gospel (v1.2+), which wraps the Hunspell libraries
|
||||||
|
but populates the dictionary with identifiers from the Go source.
|
||||||
|
|
||||||
|
<https://github.com/kortschak/gospel>
|
||||||
|
|
||||||
|
Alas, no comments are allowed in the .words file and newer versions of gospel
|
||||||
|
error out on seeing them. This is really a hunspell restriction.
|
||||||
|
|
||||||
|
We assume en_US hunspell dictionaries are installed and used.
|
||||||
|
The /AFFIXRULES are defined in en_US.aff (eg: /usr/share/hunspell/en_US.aff)
|
||||||
|
Invoke `hunspell -D` to see the actual locations.
|
||||||
|
|
||||||
|
Words which are in the base dictionary can't have extra affix rules added to
|
||||||
|
them, so we have to start with the affixed variant we want to add.
|
||||||
|
Thus `creds` rather than `cred/S` and so on.
|
||||||
|
|
||||||
|
So we can't use receive/DRSZGBU, adding 'U', to allow unreceive and variants,
|
||||||
|
we have to use unreceive as the stem.
|
||||||
|
|
||||||
|
We can't define our own affix or compound rules,
|
||||||
|
to capture rfc\d{3,} or 0x[0-9A-Fa-f]{2}
|
||||||
|
|
||||||
|
The spelling tokenizer doesn't take "permessage-deflate" as allowing for ...
|
||||||
|
"permessage-deflate", which is an RFC7692 registered extension for websockets.
|
||||||
|
We have to explicitly list "permessage".
|
18
gateway/vendor/github.com/nats-io/nats.go/README.md
generated
vendored
18
gateway/vendor/github.com/nats-io/nats.go/README.md
generated
vendored
@ -1,10 +1,18 @@
|
|||||||
# NATS - Go Client
|
# NATS - Go Client
|
||||||
A [Go](http://golang.org) client for the [NATS messaging system](https://nats.io).
|
A [Go](http://golang.org) client for the [NATS messaging system](https://nats.io).
|
||||||
|
|
||||||
[](https://www.apache.org/licenses/LICENSE-2.0)
|
[![License Apache 2][License-Image]][License-Url] [![Go Report Card][ReportCard-Image]][ReportCard-Url] [![Build Status][Build-Status-Image]][Build-Status-Url] [![GoDoc][GoDoc-Image]][GoDoc-Url] [![Coverage Status][Coverage-image]][Coverage-Url]
|
||||||
[](https://app.fossa.io/projects/git%2Bgithub.com%2Fnats-io%2Fgo-nats?ref=badge_shield)
|
|
||||||
[](https://goreportcard.com/report/github.com/nats-io/nats.go) [](http://travis-ci.com/nats-io/nats.go) [](https://pkg.go.dev/github.com/nats-io/nats.go)
|
[License-Url]: https://www.apache.org/licenses/LICENSE-2.0
|
||||||
[](https://coveralls.io/r/nats-io/nats.go?branch=master)
|
[License-Image]: https://img.shields.io/badge/License-Apache2-blue.svg
|
||||||
|
[ReportCard-Url]: https://goreportcard.com/report/github.com/nats-io/nats.go
|
||||||
|
[ReportCard-Image]: https://goreportcard.com/badge/github.com/nats-io/nats.go
|
||||||
|
[Build-Status-Url]: https://travis-ci.com/github/nats-io/nats.go
|
||||||
|
[Build-Status-Image]: https://travis-ci.com/nats-io/nats.go.svg?branch=main
|
||||||
|
[GoDoc-Url]: https://pkg.go.dev/github.com/nats-io/nats.go
|
||||||
|
[GoDoc-Image]: https://img.shields.io/badge/GoDoc-reference-007d9c
|
||||||
|
[Coverage-Url]: https://coveralls.io/r/nats-io/nats.go?branch=main
|
||||||
|
[Coverage-image]: https://coveralls.io/repos/github/nats-io/nats.go/badge.svg?branch=main
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
@ -21,7 +29,7 @@ When using or transitioning to Go modules support:
|
|||||||
```bash
|
```bash
|
||||||
# Go client latest or explicit version
|
# Go client latest or explicit version
|
||||||
go get github.com/nats-io/nats.go/@latest
|
go get github.com/nats-io/nats.go/@latest
|
||||||
go get github.com/nats-io/nats.go/@v1.11.0
|
go get github.com/nats-io/nats.go/@v1.22.1
|
||||||
|
|
||||||
# For latest NATS Server, add /v2 at the end
|
# For latest NATS Server, add /v2 at the end
|
||||||
go get github.com/nats-io/nats-server/v2
|
go get github.com/nats-io/nats-server/v2
|
||||||
|
26
gateway/vendor/github.com/nats-io/nats.go/TODO.md
generated
vendored
26
gateway/vendor/github.com/nats-io/nats.go/TODO.md
generated
vendored
@ -1,26 +0,0 @@
|
|||||||
|
|
||||||
- [ ] Better constructors, options handling
|
|
||||||
- [ ] Functions for callback settings after connection created.
|
|
||||||
- [ ] Better options for subscriptions. Slow Consumer state settable, Go routines vs Inline.
|
|
||||||
- [ ] Move off of channels for subscribers, use syncPool linkedLists, etc with highwater.
|
|
||||||
- [ ] Test for valid subjects on publish and subscribe?
|
|
||||||
- [ ] SyncSubscriber and Next for EncodedConn
|
|
||||||
- [ ] Fast Publisher?
|
|
||||||
- [ ] pooling for structs used? leaky bucket?
|
|
||||||
- [ ] Timeout 0 should work as no timeout
|
|
||||||
- [x] Ping timer
|
|
||||||
- [x] Name in Connect for gnatsd
|
|
||||||
- [x] Asynchronous error handling
|
|
||||||
- [x] Parser rewrite
|
|
||||||
- [x] Reconnect
|
|
||||||
- [x] Hide Lock
|
|
||||||
- [x] Easier encoder interface
|
|
||||||
- [x] QueueSubscribeSync
|
|
||||||
- [x] Make nats specific errors prefixed with 'nats:'
|
|
||||||
- [x] API test for closed connection
|
|
||||||
- [x] TLS/SSL
|
|
||||||
- [x] Stats collection
|
|
||||||
- [x] Disconnect detection
|
|
||||||
- [x] Optimized Publish (coalescing)
|
|
||||||
- [x] Do Examples via Go style
|
|
||||||
- [x] Standardized Errors
|
|
44
gateway/vendor/github.com/nats-io/nats.go/context.go
generated
vendored
44
gateway/vendor/github.com/nats-io/nats.go/context.go
generated
vendored
@ -1,4 +1,4 @@
|
|||||||
// Copyright 2016-2018 The NATS Authors
|
// Copyright 2016-2022 The NATS Authors
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
@ -21,20 +21,13 @@ import (
|
|||||||
// RequestMsgWithContext takes a context, a subject and payload
|
// RequestMsgWithContext takes a context, a subject and payload
|
||||||
// in bytes and request expecting a single response.
|
// in bytes and request expecting a single response.
|
||||||
func (nc *Conn) RequestMsgWithContext(ctx context.Context, msg *Msg) (*Msg, error) {
|
func (nc *Conn) RequestMsgWithContext(ctx context.Context, msg *Msg) (*Msg, error) {
|
||||||
var hdr []byte
|
if msg == nil {
|
||||||
var err error
|
return nil, ErrInvalidMsg
|
||||||
|
}
|
||||||
if len(msg.Header) > 0 {
|
hdr, err := msg.headerBytes()
|
||||||
if !nc.info.Headers {
|
if err != nil {
|
||||||
return nil, ErrHeadersNotSupported
|
return nil, err
|
||||||
}
|
|
||||||
|
|
||||||
hdr, err = msg.headerBytes()
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return nc.requestWithContext(ctx, msg.Subject, hdr, msg.Data)
|
return nc.requestWithContext(ctx, msg.Subject, hdr, msg.Data)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -92,7 +85,7 @@ func (nc *Conn) requestWithContext(ctx context.Context, subj string, hdr, data [
|
|||||||
|
|
||||||
// oldRequestWithContext utilizes inbox and subscription per request.
|
// oldRequestWithContext utilizes inbox and subscription per request.
|
||||||
func (nc *Conn) oldRequestWithContext(ctx context.Context, subj string, hdr, data []byte) (*Msg, error) {
|
func (nc *Conn) oldRequestWithContext(ctx context.Context, subj string, hdr, data []byte) (*Msg, error) {
|
||||||
inbox := NewInbox()
|
inbox := nc.NewInbox()
|
||||||
ch := make(chan *Msg, RequestChanLen)
|
ch := make(chan *Msg, RequestChanLen)
|
||||||
|
|
||||||
s, err := nc.subscribe(inbox, _EMPTY_, nil, ch, true, nil)
|
s, err := nc.subscribe(inbox, _EMPTY_, nil, ch, true, nil)
|
||||||
@ -110,10 +103,7 @@ func (nc *Conn) oldRequestWithContext(ctx context.Context, subj string, hdr, dat
|
|||||||
return s.NextMsgWithContext(ctx)
|
return s.NextMsgWithContext(ctx)
|
||||||
}
|
}
|
||||||
|
|
||||||
// NextMsgWithContext takes a context and returns the next message
|
func (s *Subscription) nextMsgWithContext(ctx context.Context, pullSubInternal, waitIfNoMsg bool) (*Msg, error) {
|
||||||
// available to a synchronous subscriber, blocking until it is delivered
|
|
||||||
// or context gets canceled.
|
|
||||||
func (s *Subscription) NextMsgWithContext(ctx context.Context) (*Msg, error) {
|
|
||||||
if ctx == nil {
|
if ctx == nil {
|
||||||
return nil, ErrInvalidContext
|
return nil, ErrInvalidContext
|
||||||
}
|
}
|
||||||
@ -125,7 +115,7 @@ func (s *Subscription) NextMsgWithContext(ctx context.Context) (*Msg, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
s.mu.Lock()
|
s.mu.Lock()
|
||||||
err := s.validateNextMsgState()
|
err := s.validateNextMsgState(pullSubInternal)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
s.mu.Unlock()
|
s.mu.Unlock()
|
||||||
return nil, err
|
return nil, err
|
||||||
@ -150,6 +140,11 @@ func (s *Subscription) NextMsgWithContext(ctx context.Context) (*Msg, error) {
|
|||||||
return msg, nil
|
return msg, nil
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
// If internal and we don't want to wait, signal that there is no
|
||||||
|
// message in the internal queue.
|
||||||
|
if pullSubInternal && !waitIfNoMsg {
|
||||||
|
return nil, errNoMessages
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
select {
|
select {
|
||||||
@ -167,6 +162,13 @@ func (s *Subscription) NextMsgWithContext(ctx context.Context) (*Msg, error) {
|
|||||||
return msg, nil
|
return msg, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NextMsgWithContext takes a context and returns the next message
|
||||||
|
// available to a synchronous subscriber, blocking until it is delivered
|
||||||
|
// or context gets canceled.
|
||||||
|
func (s *Subscription) NextMsgWithContext(ctx context.Context) (*Msg, error) {
|
||||||
|
return s.nextMsgWithContext(ctx, false, true)
|
||||||
|
}
|
||||||
|
|
||||||
// FlushWithContext will allow a context to control the duration
|
// FlushWithContext will allow a context to control the duration
|
||||||
// of a Flush() call. This context should be non-nil and should
|
// of a Flush() call. This context should be non-nil and should
|
||||||
// have a deadline set. We will return an error if none is present.
|
// have a deadline set. We will return an error if none is present.
|
||||||
@ -215,7 +217,7 @@ func (nc *Conn) FlushWithContext(ctx context.Context) error {
|
|||||||
|
|
||||||
// RequestWithContext will create an Inbox and perform a Request
|
// RequestWithContext will create an Inbox and perform a Request
|
||||||
// using the provided cancellation context with the Inbox reply
|
// using the provided cancellation context with the Inbox reply
|
||||||
// for the data v. A response will be decoded into the vPtrResponse.
|
// for the data v. A response will be decoded into the vPtr last parameter.
|
||||||
func (c *EncodedConn) RequestWithContext(ctx context.Context, subject string, v interface{}, vPtr interface{}) error {
|
func (c *EncodedConn) RequestWithContext(ctx context.Context, subject string, v interface{}, vPtr interface{}) error {
|
||||||
if ctx == nil {
|
if ctx == nil {
|
||||||
return ErrInvalidContext
|
return ErrInvalidContext
|
||||||
|
2
gateway/vendor/github.com/nats-io/nats.go/enc.go
generated
vendored
2
gateway/vendor/github.com/nats-io/nats.go/enc.go
generated
vendored
@ -130,7 +130,7 @@ func (c *EncodedConn) Request(subject string, v interface{}, vPtr interface{}, t
|
|||||||
|
|
||||||
// Handler is a specific callback used for Subscribe. It is generalized to
|
// Handler is a specific callback used for Subscribe. It is generalized to
|
||||||
// an interface{}, but we will discover its format and arguments at runtime
|
// an interface{}, but we will discover its format and arguments at runtime
|
||||||
// and perform the correct callback, including de-marshaling encoded data
|
// and perform the correct callback, including demarshaling encoded data
|
||||||
// back into the appropriate struct based on the signature of the Handler.
|
// back into the appropriate struct based on the signature of the Handler.
|
||||||
//
|
//
|
||||||
// Handlers are expected to have one of four signatures.
|
// Handlers are expected to have one of four signatures.
|
||||||
|
13
gateway/vendor/github.com/nats-io/nats.go/go_test.mod
generated
vendored
13
gateway/vendor/github.com/nats-io/nats.go/go_test.mod
generated
vendored
@ -1,11 +1,20 @@
|
|||||||
module github.com/nats-io/nats.go
|
module github.com/nats-io/nats.go
|
||||||
|
|
||||||
go 1.15
|
go 1.17
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/golang/protobuf v1.4.2
|
github.com/golang/protobuf v1.4.2
|
||||||
github.com/nats-io/nats-server/v2 v2.2.7-0.20210618192106-93a3720475a4
|
github.com/nats-io/nats-server/v2 v2.9.6
|
||||||
github.com/nats-io/nkeys v0.3.0
|
github.com/nats-io/nkeys v0.3.0
|
||||||
github.com/nats-io/nuid v1.0.1
|
github.com/nats-io/nuid v1.0.1
|
||||||
google.golang.org/protobuf v1.23.0
|
google.golang.org/protobuf v1.23.0
|
||||||
)
|
)
|
||||||
|
|
||||||
|
require (
|
||||||
|
github.com/klauspost/compress v1.15.11 // indirect
|
||||||
|
github.com/minio/highwayhash v1.0.2 // indirect
|
||||||
|
github.com/nats-io/jwt/v2 v2.3.0 // indirect
|
||||||
|
golang.org/x/crypto v0.0.0-20220926161630-eccd6366d1be // indirect
|
||||||
|
golang.org/x/sys v0.0.0-20220928140112-f11e5e49a4ec // indirect
|
||||||
|
golang.org/x/time v0.0.0-20220922220347-f3bd1da661af // indirect
|
||||||
|
)
|
||||||
|
62
gateway/vendor/github.com/nats-io/nats.go/go_test.sum
generated
vendored
62
gateway/vendor/github.com/nats-io/nats.go/go_test.sum
generated
vendored
@ -1,3 +1,5 @@
|
|||||||
|
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||||
|
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||||
github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8=
|
github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8=
|
||||||
github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA=
|
github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA=
|
||||||
github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs=
|
github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs=
|
||||||
@ -9,44 +11,44 @@ github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMyw
|
|||||||
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
|
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
|
||||||
github.com/google/go-cmp v0.4.0 h1:xsAVV57WRhGj6kEIi8ReJzQlHHqcBYCElAvkovg3B/4=
|
github.com/google/go-cmp v0.4.0 h1:xsAVV57WRhGj6kEIi8ReJzQlHHqcBYCElAvkovg3B/4=
|
||||||
github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||||
github.com/klauspost/compress v1.11.12 h1:famVnQVu7QwryBN4jNseQdUKES71ZAOnB6UQQJPZvqk=
|
github.com/klauspost/compress v1.15.11 h1:Lcadnb3RKGin4FYM/orgq0qde+nc15E5Cbqg4B9Sx9c=
|
||||||
github.com/klauspost/compress v1.11.12/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs=
|
github.com/klauspost/compress v1.15.11/go.mod h1:QPwzmACJjUTFsnSHH934V6woptycfrDDJnH7hvFVbGM=
|
||||||
github.com/minio/highwayhash v1.0.1 h1:dZ6IIu8Z14VlC0VpfKofAhCy74wu/Qb5gcn52yWoz/0=
|
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
|
||||||
github.com/minio/highwayhash v1.0.1/go.mod h1:BQskDq+xkJ12lmlUUi7U0M5Swg3EWR+dLTk+kldvVxY=
|
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
|
||||||
github.com/nats-io/jwt v1.2.2 h1:w3GMTO969dFg+UOKTmmyuu7IGdusK+7Ytlt//OYH/uU=
|
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
|
||||||
github.com/nats-io/jwt v1.2.2/go.mod h1:/xX356yQA6LuXI9xWW7mZNpxgF2mBmGecH+Fj34sP5Q=
|
github.com/minio/highwayhash v1.0.2 h1:Aak5U0nElisjDCfPSG79Tgzkn2gl66NxOMspRrKnA/g=
|
||||||
github.com/nats-io/jwt/v2 v2.0.2 h1:ejVCLO8gu6/4bOKIHQpmB5UhhUJfAQw55yvLWpfmKjI=
|
github.com/minio/highwayhash v1.0.2/go.mod h1:BQskDq+xkJ12lmlUUi7U0M5Swg3EWR+dLTk+kldvVxY=
|
||||||
github.com/nats-io/jwt/v2 v2.0.2/go.mod h1:VRP+deawSXyhNjXmxPCHskrR6Mq50BqpEI5SEcNiGlY=
|
github.com/nats-io/jwt/v2 v2.3.0 h1:z2mA1a7tIf5ShggOFlR1oBPgd6hGqcDYsISxZByUzdI=
|
||||||
github.com/nats-io/nats-server/v2 v2.2.6 h1:FPK9wWx9pagxcw14s8W9rlfzfyHm61uNLnJyybZbn48=
|
github.com/nats-io/jwt/v2 v2.3.0/go.mod h1:0tqz9Hlu6bCBFLWAASKhE5vUA4c24L9KPUUgvwumE/k=
|
||||||
github.com/nats-io/nats-server/v2 v2.2.6/go.mod h1:sEnFaxqe09cDmfMgACxZbziXnhQFhwk+aKkZjBBRYrI=
|
github.com/nats-io/nats-server/v2 v2.9.6 h1:RTtK+rv/4CcliOuqGsy58g7MuWkBaWmF5TUNwuUo9Uw=
|
||||||
github.com/nats-io/nats-server/v2 v2.2.7-0.20210615172038-0069f752b61b h1:hy5rgG4Hur55cWBKxD/VbkjaRYYAxo5Ayk9AxGJcHTs=
|
github.com/nats-io/nats-server/v2 v2.9.6/go.mod h1:AB6hAnGZDlYfqb7CTAm66ZKMZy9DpfierY1/PbpvI2g=
|
||||||
github.com/nats-io/nats-server/v2 v2.2.7-0.20210615172038-0069f752b61b/go.mod h1:hBgcnXvNESvh65J1nMtxaHHsaUxSmteZXCH1JLTuvfg=
|
github.com/nats-io/nats.go v1.19.0/go.mod h1:tLqubohF7t4z3du1QDPYJIQQyhb4wl6DhjxEajSI7UA=
|
||||||
github.com/nats-io/nats-server/v2 v2.2.7-0.20210618192106-93a3720475a4 h1:8QM5O7j1a9SdEPzzpQj7daRu4fi/sxfXRxfcKGa5Dr0=
|
|
||||||
github.com/nats-io/nats-server/v2 v2.2.7-0.20210618192106-93a3720475a4/go.mod h1:hBgcnXvNESvh65J1nMtxaHHsaUxSmteZXCH1JLTuvfg=
|
|
||||||
github.com/nats-io/nats.go v1.11.0/go.mod h1:BPko4oXsySz4aSWeFgOHLZs3G4Jq4ZAyE6/zMCxRT6w=
|
|
||||||
github.com/nats-io/nkeys v0.2.0/go.mod h1:XdZpAbhgyyODYqjTawOnIOI7VlbKSarI9Gfy1tqEu/s=
|
|
||||||
github.com/nats-io/nkeys v0.3.0 h1:cgM5tL53EvYRU+2YLXIK0G2mJtK12Ft9oeooSZMA2G8=
|
github.com/nats-io/nkeys v0.3.0 h1:cgM5tL53EvYRU+2YLXIK0G2mJtK12Ft9oeooSZMA2G8=
|
||||||
github.com/nats-io/nkeys v0.3.0/go.mod h1:gvUNGjVcM2IPr5rCsRsC6Wb3Hr2CQAm08dsxtV6A5y4=
|
github.com/nats-io/nkeys v0.3.0/go.mod h1:gvUNGjVcM2IPr5rCsRsC6Wb3Hr2CQAm08dsxtV6A5y4=
|
||||||
github.com/nats-io/nuid v1.0.1 h1:5iA8DT8V7q8WK2EScv2padNa/rTESc1KdnPw4TC2paw=
|
github.com/nats-io/nuid v1.0.1 h1:5iA8DT8V7q8WK2EScv2padNa/rTESc1KdnPw4TC2paw=
|
||||||
github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c=
|
github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c=
|
||||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||||
golang.org/x/crypto v0.0.0-20200323165209-0ec3e9974c59/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
|
github.com/prashantv/gostub v1.1.0/go.mod h1:A5zLQHz7ieHGG7is6LLXLz7I8+3LZzsrV0P1IAHhP5U=
|
||||||
golang.org/x/crypto v0.0.0-20210314154223-e6e6c4f2bb5b h1:wSOdpTq0/eI46Ez/LkDwIsAKA71YP2SRKBODiRWM0as=
|
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||||
|
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||||
|
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||||
|
go.uber.org/automaxprocs v1.5.1/go.mod h1:BF4eumQw0P9GtnuxxovUd06vwm1o18oMzFtK66vU6XU=
|
||||||
golang.org/x/crypto v0.0.0-20210314154223-e6e6c4f2bb5b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4=
|
golang.org/x/crypto v0.0.0-20210314154223-e6e6c4f2bb5b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4=
|
||||||
golang.org/x/crypto v0.0.0-20210505212654-3497b51f5e64 h1:QuAh/1Gwc0d+u9walMU1NqzhRemNegsv5esp2ALQIY4=
|
golang.org/x/crypto v0.0.0-20220926161630-eccd6366d1be h1:fmw3UbQh+nxngCAHrDCCztao/kbYFnWjoqop8dHx05A=
|
||||||
golang.org/x/crypto v0.0.0-20210505212654-3497b51f5e64/go.mod h1:P+XmwS30IXTQdn5tA2iutPOUgjI07+tq3H3K9MVA1s8=
|
golang.org/x/crypto v0.0.0-20220926161630-eccd6366d1be/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
|
||||||
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
|
||||||
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
|
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
|
||||||
|
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
||||||
golang.org/x/sys v0.0.0-20190130150945-aca44879d564/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
golang.org/x/sys v0.0.0-20190130150945-aca44879d564/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
|
||||||
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
|
||||||
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 h1:nxC68pudNYkKU6jWhgrqdreuFiOQWj1Fs7T3VrH4Pjw=
|
|
||||||
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
|
golang.org/x/sys v0.0.0-20220928140112-f11e5e49a4ec h1:BkDtF2Ih9xZ7le9ndzTA7KJow28VbQW3odyk/8drmuI=
|
||||||
|
golang.org/x/sys v0.0.0-20220928140112-f11e5e49a4ec/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
||||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
|
||||||
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||||
golang.org/x/time v0.0.0-20200416051211-89c76fbcd5d1 h1:NusfzzA6yGQ+ua51ck7E3omNUX/JuqbFSaRGqU8CcLI=
|
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||||
golang.org/x/time v0.0.0-20200416051211-89c76fbcd5d1/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
golang.org/x/time v0.0.0-20220922220347-f3bd1da661af h1:Yx9k8YCG3dvF87UAn2tu2HQLf2dt/eR1bXxpLMWeH+Y=
|
||||||
|
golang.org/x/time v0.0.0-20220922220347-f3bd1da661af/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||||
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
|
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
|
||||||
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=
|
||||||
@ -57,3 +59,7 @@ google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miE
|
|||||||
google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo=
|
google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo=
|
||||||
google.golang.org/protobuf v1.23.0 h1:4MY060fB1DLGMB/7MBTLnwQUY6+F09GEiz6SsrNqyzM=
|
google.golang.org/protobuf v1.23.0 h1:4MY060fB1DLGMB/7MBTLnwQUY6+F09GEiz6SsrNqyzM=
|
||||||
google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
|
google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
|
||||||
|
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||||
|
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||||
|
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||||
|
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||||
|
2414
gateway/vendor/github.com/nats-io/nats.go/js.go
generated
vendored
2414
gateway/vendor/github.com/nats-io/nats.go/js.go
generated
vendored
File diff suppressed because it is too large
Load Diff
193
gateway/vendor/github.com/nats-io/nats.go/jserrors.go
generated
vendored
Normal file
193
gateway/vendor/github.com/nats-io/nats.go/jserrors.go
generated
vendored
Normal file
@ -0,0 +1,193 @@
|
|||||||
|
// Copyright 2020-2022 The NATS Authors
|
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
// you may not use this file except in compliance with the License.
|
||||||
|
// You may obtain a copy of the License at
|
||||||
|
//
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
//
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
// See the License for the specific language governing permissions and
|
||||||
|
// limitations under the License.
|
||||||
|
|
||||||
|
package nats
|
||||||
|
|
||||||
|
import (
|
||||||
|
"errors"
|
||||||
|
"fmt"
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
// API errors
|
||||||
|
|
||||||
|
// ErrJetStreamNotEnabled is an error returned when JetStream is not enabled for an account.
|
||||||
|
ErrJetStreamNotEnabled JetStreamError = &jsError{apiErr: &APIError{ErrorCode: JSErrCodeJetStreamNotEnabled, Description: "jetstream not enabled", Code: 503}}
|
||||||
|
|
||||||
|
// ErrJetStreamNotEnabledForAccount is an error returned when JetStream is not enabled for an account.
|
||||||
|
ErrJetStreamNotEnabledForAccount JetStreamError = &jsError{apiErr: &APIError{ErrorCode: JSErrCodeJetStreamNotEnabledForAccount, Description: "jetstream not enabled for account", Code: 503}}
|
||||||
|
|
||||||
|
// ErrStreamNotFound is an error returned when stream with given name does not exist.
|
||||||
|
ErrStreamNotFound JetStreamError = &jsError{apiErr: &APIError{ErrorCode: JSErrCodeStreamNotFound, Description: "stream not found", Code: 404}}
|
||||||
|
|
||||||
|
// ErrStreamNameAlreadyInUse is returned when a stream with given name already exists and has a different configuration.
|
||||||
|
ErrStreamNameAlreadyInUse JetStreamError = &jsError{apiErr: &APIError{ErrorCode: JSErrCodeStreamNameInUse, Description: "stream name already in use", Code: 400}}
|
||||||
|
|
||||||
|
// ErrConsumerNotFound is an error returned when consumer with given name does not exist.
|
||||||
|
ErrConsumerNotFound JetStreamError = &jsError{apiErr: &APIError{ErrorCode: JSErrCodeConsumerNotFound, Description: "consumer not found", Code: 404}}
|
||||||
|
|
||||||
|
// ErrMsgNotFound is returned when message with provided sequence number does npt exist.
|
||||||
|
ErrMsgNotFound JetStreamError = &jsError{apiErr: &APIError{ErrorCode: JSErrCodeMessageNotFound, Description: "message not found", Code: 404}}
|
||||||
|
|
||||||
|
// ErrBadRequest is returned when invalid request is sent to JetStream API.
|
||||||
|
ErrBadRequest JetStreamError = &jsError{apiErr: &APIError{ErrorCode: JSErrCodeBadRequest, Description: "bad request", Code: 400}}
|
||||||
|
|
||||||
|
// Client errors
|
||||||
|
|
||||||
|
// ErrConsumerNameAlreadyInUse is an error returned when consumer with given name already exists.
|
||||||
|
ErrConsumerNameAlreadyInUse JetStreamError = &jsError{message: "consumer name already in use"}
|
||||||
|
|
||||||
|
// ErrConsumerNotActive is an error returned when consumer is not active.
|
||||||
|
ErrConsumerNotActive JetStreamError = &jsError{message: "consumer not active"}
|
||||||
|
|
||||||
|
// ErrInvalidJSAck is returned when JetStream ack from message publish is invalid.
|
||||||
|
ErrInvalidJSAck JetStreamError = &jsError{message: "invalid jetstream publish response"}
|
||||||
|
|
||||||
|
// ErrStreamConfigRequired is returned when empty stream configuration is supplied to add/update stream.
|
||||||
|
ErrStreamConfigRequired JetStreamError = &jsError{message: "stream configuration is required"}
|
||||||
|
|
||||||
|
// ErrStreamNameRequired is returned when the provided stream name is empty.
|
||||||
|
ErrStreamNameRequired JetStreamError = &jsError{message: "stream name is required"}
|
||||||
|
|
||||||
|
// ErrConsumerNameRequired is returned when the provided consumer durable name is empty.
|
||||||
|
ErrConsumerNameRequired JetStreamError = &jsError{message: "consumer name is required"}
|
||||||
|
|
||||||
|
// ErrConsumerConfigRequired is returned when empty consumer consuguration is supplied to add/update consumer.
|
||||||
|
ErrConsumerConfigRequired JetStreamError = &jsError{message: "consumer configuration is required"}
|
||||||
|
|
||||||
|
// ErrPullSubscribeToPushConsumer is returned when attempting to use PullSubscribe on push consumer.
|
||||||
|
ErrPullSubscribeToPushConsumer JetStreamError = &jsError{message: "cannot pull subscribe to push based consumer"}
|
||||||
|
|
||||||
|
// ErrPullSubscribeRequired is returned when attempting to use subscribe methods not suitable for pull consumers for pull consumers.
|
||||||
|
ErrPullSubscribeRequired JetStreamError = &jsError{message: "must use pull subscribe to bind to pull based consumer"}
|
||||||
|
|
||||||
|
// ErrMsgAlreadyAckd is returned when attempting to acknowledge message more than once.
|
||||||
|
ErrMsgAlreadyAckd JetStreamError = &jsError{message: "message was already acknowledged"}
|
||||||
|
|
||||||
|
// ErrNoStreamResponse is returned when there is no response from stream (e.g. no responders error).
|
||||||
|
ErrNoStreamResponse JetStreamError = &jsError{message: "no response from stream"}
|
||||||
|
|
||||||
|
// ErrNotJSMessage is returned when attempting to get metadata from non JetStream message .
|
||||||
|
ErrNotJSMessage JetStreamError = &jsError{message: "not a jetstream message"}
|
||||||
|
|
||||||
|
// ErrInvalidStreamName is returned when the provided stream name is invalid (contains '.').
|
||||||
|
ErrInvalidStreamName JetStreamError = &jsError{message: "invalid stream name"}
|
||||||
|
|
||||||
|
// ErrInvalidConsumerName is returned when the provided consumer name is invalid (contains '.').
|
||||||
|
ErrInvalidConsumerName JetStreamError = &jsError{message: "invalid consumer name"}
|
||||||
|
|
||||||
|
// ErrNoMatchingStream is returned when stream lookup by subject is unsuccessful.
|
||||||
|
ErrNoMatchingStream JetStreamError = &jsError{message: "no stream matches subject"}
|
||||||
|
|
||||||
|
// ErrSubjectMismatch is returned when the provided subject does not match consumer's filter subject.
|
||||||
|
ErrSubjectMismatch JetStreamError = &jsError{message: "subject does not match consumer"}
|
||||||
|
|
||||||
|
// ErrContextAndTimeout is returned when attempting to use both context and timeout.
|
||||||
|
ErrContextAndTimeout JetStreamError = &jsError{message: "context and timeout can not both be set"}
|
||||||
|
|
||||||
|
// ErrCantAckIfConsumerAckNone is returned when attempting to ack a message for consumer with AckNone policy set.
|
||||||
|
ErrCantAckIfConsumerAckNone JetStreamError = &jsError{message: "cannot acknowledge a message for a consumer with AckNone policy"}
|
||||||
|
|
||||||
|
// ErrConsumerDeleted is returned when attempting to send pull request to a consumer which does not exist
|
||||||
|
ErrConsumerDeleted JetStreamError = &jsError{message: "consumer deleted"}
|
||||||
|
|
||||||
|
// ErrConsumerLeadershipChanged is returned when pending requests are no longer valid after leadership has changed
|
||||||
|
ErrConsumerLeadershipChanged JetStreamError = &jsError{message: "Leadership Changed"}
|
||||||
|
|
||||||
|
// DEPRECATED: ErrInvalidDurableName is no longer returned and will be removed in future releases.
|
||||||
|
// Use ErrInvalidConsumerName instead.
|
||||||
|
ErrInvalidDurableName = errors.New("nats: invalid durable name")
|
||||||
|
)
|
||||||
|
|
||||||
|
// Error code represents JetStream error codes returned by the API
|
||||||
|
type ErrorCode uint16
|
||||||
|
|
||||||
|
const (
|
||||||
|
JSErrCodeJetStreamNotEnabledForAccount ErrorCode = 10039
|
||||||
|
JSErrCodeJetStreamNotEnabled ErrorCode = 10076
|
||||||
|
|
||||||
|
JSErrCodeStreamNotFound ErrorCode = 10059
|
||||||
|
JSErrCodeStreamNameInUse ErrorCode = 10058
|
||||||
|
|
||||||
|
JSErrCodeConsumerNotFound ErrorCode = 10014
|
||||||
|
JSErrCodeConsumerNameExists ErrorCode = 10013
|
||||||
|
JSErrCodeConsumerAlreadyExists ErrorCode = 10105
|
||||||
|
|
||||||
|
JSErrCodeMessageNotFound ErrorCode = 10037
|
||||||
|
|
||||||
|
JSErrCodeBadRequest ErrorCode = 10003
|
||||||
|
|
||||||
|
JSErrCodeStreamWrongLastSequence ErrorCode = 10071
|
||||||
|
)
|
||||||
|
|
||||||
|
// APIError is included in all API responses if there was an error.
|
||||||
|
type APIError struct {
|
||||||
|
Code int `json:"code"`
|
||||||
|
ErrorCode ErrorCode `json:"err_code"`
|
||||||
|
Description string `json:"description,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// Error prints the JetStream API error code and description
|
||||||
|
func (e *APIError) Error() string {
|
||||||
|
return fmt.Sprintf("nats: %s", e.Description)
|
||||||
|
}
|
||||||
|
|
||||||
|
// APIError implements the JetStreamError interface.
|
||||||
|
func (e *APIError) APIError() *APIError {
|
||||||
|
return e
|
||||||
|
}
|
||||||
|
|
||||||
|
// Is matches against an APIError.
|
||||||
|
func (e *APIError) Is(err error) bool {
|
||||||
|
if e == nil {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
// Extract internal APIError to match against.
|
||||||
|
var aerr *APIError
|
||||||
|
ok := errors.As(err, &aerr)
|
||||||
|
if !ok {
|
||||||
|
return ok
|
||||||
|
}
|
||||||
|
return e.ErrorCode == aerr.ErrorCode
|
||||||
|
}
|
||||||
|
|
||||||
|
// JetStreamError is an error result that happens when using JetStream.
|
||||||
|
// In case of client-side error, `APIError()` returns nil
|
||||||
|
type JetStreamError interface {
|
||||||
|
APIError() *APIError
|
||||||
|
error
|
||||||
|
}
|
||||||
|
|
||||||
|
type jsError struct {
|
||||||
|
apiErr *APIError
|
||||||
|
message string
|
||||||
|
}
|
||||||
|
|
||||||
|
func (err *jsError) APIError() *APIError {
|
||||||
|
return err.apiErr
|
||||||
|
}
|
||||||
|
|
||||||
|
func (err *jsError) Error() string {
|
||||||
|
if err.apiErr != nil && err.apiErr.Description != "" {
|
||||||
|
return err.apiErr.Error()
|
||||||
|
}
|
||||||
|
return fmt.Sprintf("nats: %s", err.message)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (err *jsError) Unwrap() error {
|
||||||
|
// Allow matching to embedded APIError in case there is one.
|
||||||
|
if err.apiErr == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return err.apiErr
|
||||||
|
}
|
799
gateway/vendor/github.com/nats-io/nats.go/jsm.go
generated
vendored
799
gateway/vendor/github.com/nats-io/nats.go/jsm.go
generated
vendored
File diff suppressed because it is too large
Load Diff
1080
gateway/vendor/github.com/nats-io/nats.go/kv.go
generated
vendored
Normal file
1080
gateway/vendor/github.com/nats-io/nats.go/kv.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1004
gateway/vendor/github.com/nats-io/nats.go/nats.go
generated
vendored
1004
gateway/vendor/github.com/nats-io/nats.go/nats.go
generated
vendored
File diff suppressed because it is too large
Load Diff
2
gateway/vendor/github.com/nats-io/nats.go/netchan.go
generated
vendored
2
gateway/vendor/github.com/nats-io/nats.go/netchan.go
generated
vendored
@ -1,4 +1,4 @@
|
|||||||
// Copyright 2013-2018 The NATS Authors
|
// Copyright 2013-2022 The NATS Authors
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
|
1358
gateway/vendor/github.com/nats-io/nats.go/object.go
generated
vendored
Normal file
1358
gateway/vendor/github.com/nats-io/nats.go/object.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
26
gateway/vendor/github.com/nats-io/nats.go/parser.go
generated
vendored
26
gateway/vendor/github.com/nats-io/nats.go/parser.go
generated
vendored
@ -1,4 +1,4 @@
|
|||||||
// Copyright 2012-2020 The NATS Authors
|
// Copyright 2012-2122 The NATS Authors
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
@ -28,14 +28,15 @@ type msgArg struct {
|
|||||||
const MAX_CONTROL_LINE_SIZE = 4096
|
const MAX_CONTROL_LINE_SIZE = 4096
|
||||||
|
|
||||||
type parseState struct {
|
type parseState struct {
|
||||||
state int
|
state int
|
||||||
as int
|
as int
|
||||||
drop int
|
drop int
|
||||||
hdr int
|
hdr int
|
||||||
ma msgArg
|
ma msgArg
|
||||||
argBuf []byte
|
argBuf []byte
|
||||||
msgBuf []byte
|
msgBuf []byte
|
||||||
scratch [MAX_CONTROL_LINE_SIZE]byte
|
msgCopied bool
|
||||||
|
scratch [MAX_CONTROL_LINE_SIZE]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@ -167,7 +168,7 @@ func (nc *Conn) parse(buf []byte) error {
|
|||||||
if nc.ps.msgBuf != nil {
|
if nc.ps.msgBuf != nil {
|
||||||
if len(nc.ps.msgBuf) >= nc.ps.ma.size {
|
if len(nc.ps.msgBuf) >= nc.ps.ma.size {
|
||||||
nc.processMsg(nc.ps.msgBuf)
|
nc.processMsg(nc.ps.msgBuf)
|
||||||
nc.ps.argBuf, nc.ps.msgBuf, nc.ps.state = nil, nil, MSG_END
|
nc.ps.argBuf, nc.ps.msgBuf, nc.ps.msgCopied, nc.ps.state = nil, nil, false, MSG_END
|
||||||
} else {
|
} else {
|
||||||
// copy as much as we can to the buffer and skip ahead.
|
// copy as much as we can to the buffer and skip ahead.
|
||||||
toCopy := nc.ps.ma.size - len(nc.ps.msgBuf)
|
toCopy := nc.ps.ma.size - len(nc.ps.msgBuf)
|
||||||
@ -190,7 +191,7 @@ func (nc *Conn) parse(buf []byte) error {
|
|||||||
}
|
}
|
||||||
} else if i-nc.ps.as >= nc.ps.ma.size {
|
} else if i-nc.ps.as >= nc.ps.ma.size {
|
||||||
nc.processMsg(buf[nc.ps.as:i])
|
nc.processMsg(buf[nc.ps.as:i])
|
||||||
nc.ps.argBuf, nc.ps.msgBuf, nc.ps.state = nil, nil, MSG_END
|
nc.ps.argBuf, nc.ps.msgBuf, nc.ps.msgCopied, nc.ps.state = nil, nil, false, MSG_END
|
||||||
}
|
}
|
||||||
case MSG_END:
|
case MSG_END:
|
||||||
switch b {
|
switch b {
|
||||||
@ -403,6 +404,7 @@ func (nc *Conn) parse(buf []byte) error {
|
|||||||
|
|
||||||
nc.ps.msgBuf = make([]byte, lrem, nc.ps.ma.size)
|
nc.ps.msgBuf = make([]byte, lrem, nc.ps.ma.size)
|
||||||
copy(nc.ps.msgBuf, buf[nc.ps.as:])
|
copy(nc.ps.msgBuf, buf[nc.ps.as:])
|
||||||
|
nc.ps.msgCopied = true
|
||||||
} else {
|
} else {
|
||||||
nc.ps.msgBuf = nc.ps.scratch[len(nc.ps.argBuf):len(nc.ps.argBuf)]
|
nc.ps.msgBuf = nc.ps.scratch[len(nc.ps.argBuf):len(nc.ps.argBuf)]
|
||||||
nc.ps.msgBuf = append(nc.ps.msgBuf, (buf[nc.ps.as:])...)
|
nc.ps.msgBuf = append(nc.ps.msgBuf, (buf[nc.ps.as:])...)
|
||||||
@ -530,7 +532,7 @@ func (nc *Conn) processHeaderMsgArgs(arg []byte) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ascii numbers 0-9
|
// ASCII numbers 0-9
|
||||||
const (
|
const (
|
||||||
ascii_0 = 48
|
ascii_0 = 48
|
||||||
ascii_9 = 57
|
ascii_9 = 57
|
||||||
|
2
gateway/vendor/github.com/nats-io/nats.go/timer.go
generated
vendored
2
gateway/vendor/github.com/nats-io/nats.go/timer.go
generated
vendored
@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2018 The NATS Authors
|
// Copyright 2017-2022 The NATS Authors
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
|
3
gateway/vendor/github.com/nats-io/nats.go/util/tls.go
generated
vendored
3
gateway/vendor/github.com/nats-io/nats.go/util/tls.go
generated
vendored
@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2018 The NATS Authors
|
// Copyright 2017-2022 The NATS Authors
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
@ -11,6 +11,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build go1.8
|
||||||
// +build go1.8
|
// +build go1.8
|
||||||
|
|
||||||
package util
|
package util
|
||||||
|
3
gateway/vendor/github.com/nats-io/nats.go/util/tls_go17.go
generated
vendored
3
gateway/vendor/github.com/nats-io/nats.go/util/tls_go17.go
generated
vendored
@ -1,4 +1,4 @@
|
|||||||
// Copyright 2016-2018 The NATS Authors
|
// Copyright 2016-2022 The NATS Authors
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
@ -11,6 +11,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build go1.7 && !go1.8
|
||||||
// +build go1.7,!go1.8
|
// +build go1.7,!go1.8
|
||||||
|
|
||||||
package util
|
package util
|
||||||
|
81
gateway/vendor/github.com/nats-io/nats.go/ws.go
generated
vendored
81
gateway/vendor/github.com/nats-io/nats.go/ws.go
generated
vendored
@ -1,4 +1,4 @@
|
|||||||
// Copyright 2021 The NATS Authors
|
// Copyright 2021-2022 The NATS Authors
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
// You may obtain a copy of the License at
|
// You may obtain a copy of the License at
|
||||||
@ -24,7 +24,6 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
|
||||||
mrand "math/rand"
|
mrand "math/rand"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
@ -53,6 +52,7 @@ const (
|
|||||||
wsContinuationFrame = 0
|
wsContinuationFrame = 0
|
||||||
wsMaxFrameHeaderSize = 14
|
wsMaxFrameHeaderSize = 14
|
||||||
wsMaxControlPayloadSize = 125
|
wsMaxControlPayloadSize = 125
|
||||||
|
wsCloseSatusSize = 2
|
||||||
|
|
||||||
// From https://tools.ietf.org/html/rfc6455#section-11.7
|
// From https://tools.ietf.org/html/rfc6455#section-11.7
|
||||||
wsCloseStatusNormalClosure = 1000
|
wsCloseStatusNormalClosure = 1000
|
||||||
@ -80,6 +80,7 @@ type websocketReader struct {
|
|||||||
ib []byte
|
ib []byte
|
||||||
ff bool
|
ff bool
|
||||||
fc bool
|
fc bool
|
||||||
|
nl bool
|
||||||
dc *wsDecompressor
|
dc *wsDecompressor
|
||||||
nc *Conn
|
nc *Conn
|
||||||
}
|
}
|
||||||
@ -168,8 +169,7 @@ func (d *wsDecompressor) decompress() ([]byte, error) {
|
|||||||
} else {
|
} else {
|
||||||
d.flate.(flate.Resetter).Reset(d, nil)
|
d.flate.(flate.Resetter).Reset(d, nil)
|
||||||
}
|
}
|
||||||
// TODO: When Go 1.15 support is dropped, replace with io.ReadAll()
|
b, err := io.ReadAll(d.flate)
|
||||||
b, err := ioutil.ReadAll(d.flate)
|
|
||||||
// Now reset the compressed buffers list
|
// Now reset the compressed buffers list
|
||||||
d.bufs = nil
|
d.bufs = nil
|
||||||
return b, err
|
return b, err
|
||||||
@ -179,6 +179,15 @@ func wsNewReader(r io.Reader) *websocketReader {
|
|||||||
return &websocketReader{r: r, ff: true}
|
return &websocketReader{r: r, ff: true}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// From now on, reads will be from the readLoop and we will need to
|
||||||
|
// acquire the connection lock should we have to send/write a control
|
||||||
|
// message from handleControlFrame.
|
||||||
|
//
|
||||||
|
// Note: this runs under the connection lock.
|
||||||
|
func (r *websocketReader) doneWithConnect() {
|
||||||
|
r.nl = true
|
||||||
|
}
|
||||||
|
|
||||||
func (r *websocketReader) Read(p []byte) (int, error) {
|
func (r *websocketReader) Read(p []byte) (int, error) {
|
||||||
var err error
|
var err error
|
||||||
var buf []byte
|
var buf []byte
|
||||||
@ -372,7 +381,6 @@ func (r *websocketReader) handleControlFrame(frameType wsOpCode, buf []byte, pos
|
|||||||
var payload []byte
|
var payload []byte
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
statusPos := pos
|
|
||||||
if rem > 0 {
|
if rem > 0 {
|
||||||
payload, pos, err = wsGet(r.r, buf, pos, rem)
|
payload, pos, err = wsGet(r.r, buf, pos, rem)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -382,25 +390,32 @@ func (r *websocketReader) handleControlFrame(frameType wsOpCode, buf []byte, pos
|
|||||||
switch frameType {
|
switch frameType {
|
||||||
case wsCloseMessage:
|
case wsCloseMessage:
|
||||||
status := wsCloseStatusNoStatusReceived
|
status := wsCloseStatusNoStatusReceived
|
||||||
body := ""
|
var body string
|
||||||
// If there is a payload, it should contain 2 unsigned bytes
|
lp := len(payload)
|
||||||
// that represent the status code and then optional payload.
|
// If there is a payload, the status is represented as a 2-byte
|
||||||
if len(payload) >= 2 {
|
// unsigned integer (in network byte order). Then, there may be an
|
||||||
status = int(binary.BigEndian.Uint16(buf[statusPos : statusPos+2]))
|
// optional body.
|
||||||
body = string(buf[statusPos+2 : statusPos+len(payload)])
|
hasStatus, hasBody := lp >= wsCloseSatusSize, lp > wsCloseSatusSize
|
||||||
if body != "" && !utf8.ValidString(body) {
|
if hasStatus {
|
||||||
// https://tools.ietf.org/html/rfc6455#section-5.5.1
|
// Decode the status
|
||||||
// If body is present, it must be a valid utf8
|
status = int(binary.BigEndian.Uint16(payload[:wsCloseSatusSize]))
|
||||||
status = wsCloseStatusInvalidPayloadData
|
// Now if there is a body, capture it and make sure this is a valid UTF-8.
|
||||||
body = "invalid utf8 body in close frame"
|
if hasBody {
|
||||||
|
body = string(payload[wsCloseSatusSize:])
|
||||||
|
if !utf8.ValidString(body) {
|
||||||
|
// https://tools.ietf.org/html/rfc6455#section-5.5.1
|
||||||
|
// If body is present, it must be a valid utf8
|
||||||
|
status = wsCloseStatusInvalidPayloadData
|
||||||
|
body = "invalid utf8 body in close frame"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
r.nc.wsEnqueueCloseMsg(status, body)
|
r.nc.wsEnqueueCloseMsg(r.nl, status, body)
|
||||||
// Return io.EOF so that readLoop will close the connection as ClientClosed
|
// Return io.EOF so that readLoop will close the connection as client closed
|
||||||
// after processing pending buffers.
|
// after processing pending buffers.
|
||||||
return pos, io.EOF
|
return pos, io.EOF
|
||||||
case wsPingMessage:
|
case wsPingMessage:
|
||||||
r.nc.wsEnqueueControlMsg(wsPongMessage, payload)
|
r.nc.wsEnqueueControlMsg(r.nl, wsPongMessage, payload)
|
||||||
case wsPongMessage:
|
case wsPongMessage:
|
||||||
// Nothing to do..
|
// Nothing to do..
|
||||||
}
|
}
|
||||||
@ -553,6 +568,15 @@ func (nc *Conn) wsInitHandshake(u *url.URL) error {
|
|||||||
scheme = "https"
|
scheme = "https"
|
||||||
}
|
}
|
||||||
ustr := fmt.Sprintf("%s://%s", scheme, u.Host)
|
ustr := fmt.Sprintf("%s://%s", scheme, u.Host)
|
||||||
|
|
||||||
|
if nc.Opts.ProxyPath != "" {
|
||||||
|
proxyPath := nc.Opts.ProxyPath
|
||||||
|
if !strings.HasPrefix(proxyPath, "/") {
|
||||||
|
proxyPath = "/" + proxyPath
|
||||||
|
}
|
||||||
|
ustr += proxyPath
|
||||||
|
}
|
||||||
|
|
||||||
u, err = url.Parse(ustr)
|
u, err = url.Parse(ustr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
@ -637,14 +661,16 @@ func (nc *Conn) wsClose() {
|
|||||||
nc.wsEnqueueCloseMsgLocked(wsCloseStatusNormalClosure, _EMPTY_)
|
nc.wsEnqueueCloseMsgLocked(wsCloseStatusNormalClosure, _EMPTY_)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (nc *Conn) wsEnqueueCloseMsg(status int, payload string) {
|
func (nc *Conn) wsEnqueueCloseMsg(needsLock bool, status int, payload string) {
|
||||||
// In some low-level unit tests it will happen...
|
// In some low-level unit tests it will happen...
|
||||||
if nc == nil {
|
if nc == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
nc.mu.Lock()
|
if needsLock {
|
||||||
|
nc.mu.Lock()
|
||||||
|
defer nc.mu.Unlock()
|
||||||
|
}
|
||||||
nc.wsEnqueueCloseMsgLocked(status, payload)
|
nc.wsEnqueueCloseMsgLocked(status, payload)
|
||||||
nc.mu.Unlock()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (nc *Conn) wsEnqueueCloseMsgLocked(status int, payload string) {
|
func (nc *Conn) wsEnqueueCloseMsgLocked(status int, payload string) {
|
||||||
@ -668,25 +694,26 @@ func (nc *Conn) wsEnqueueCloseMsgLocked(status int, payload string) {
|
|||||||
nc.bw.flush()
|
nc.bw.flush()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (nc *Conn) wsEnqueueControlMsg(frameType wsOpCode, payload []byte) {
|
func (nc *Conn) wsEnqueueControlMsg(needsLock bool, frameType wsOpCode, payload []byte) {
|
||||||
// In some low-level unit tests it will happen...
|
// In some low-level unit tests it will happen...
|
||||||
if nc == nil {
|
if nc == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
fh, key := wsCreateFrameHeader(false, frameType, len(payload))
|
if needsLock {
|
||||||
nc.mu.Lock()
|
nc.mu.Lock()
|
||||||
|
defer nc.mu.Unlock()
|
||||||
|
}
|
||||||
wr, ok := nc.bw.w.(*websocketWriter)
|
wr, ok := nc.bw.w.(*websocketWriter)
|
||||||
if !ok {
|
if !ok {
|
||||||
nc.mu.Unlock()
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
fh, key := wsCreateFrameHeader(false, frameType, len(payload))
|
||||||
wr.ctrlFrames = append(wr.ctrlFrames, fh)
|
wr.ctrlFrames = append(wr.ctrlFrames, fh)
|
||||||
if len(payload) > 0 {
|
if len(payload) > 0 {
|
||||||
wsMaskBuf(key, payload)
|
wsMaskBuf(key, payload)
|
||||||
wr.ctrlFrames = append(wr.ctrlFrames, payload)
|
wr.ctrlFrames = append(wr.ctrlFrames, payload)
|
||||||
}
|
}
|
||||||
nc.bw.flush()
|
nc.bw.flush()
|
||||||
nc.mu.Unlock()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func wsPMCExtensionSupport(header http.Header) (bool, bool) {
|
func wsPMCExtensionSupport(header http.Header) (bool, bool) {
|
||||||
|
12
gateway/vendor/github.com/nats-io/stan.go/.travis.yml
generated
vendored
12
gateway/vendor/github.com/nats-io/stan.go/.travis.yml
generated
vendored
@ -1,17 +1,17 @@
|
|||||||
language: go
|
language: go
|
||||||
go:
|
go:
|
||||||
- 1.16.x
|
- 1.19.x
|
||||||
- 1.15.x
|
- 1.18.x
|
||||||
go_import_path: github.com/nats-io/stan.go
|
go_import_path: github.com/nats-io/stan.go
|
||||||
install:
|
install:
|
||||||
- go get -u honnef.co/go/tools/cmd/staticcheck
|
- if [[ "$TRAVIS_GO_VERSION" =~ 1.19 ]]; then go install honnef.co/go/tools/cmd/staticcheck@latest; fi
|
||||||
- go get -u github.com/client9/misspell/cmd/misspell
|
- go install github.com/client9/misspell/cmd/misspell@latest
|
||||||
before_script:
|
before_script:
|
||||||
- $(exit $(go fmt ./... | wc -l))
|
- $(exit $(go fmt ./... | wc -l))
|
||||||
- go vet -modfile go_tests.mod ./...
|
- go vet -modfile go_tests.mod ./...
|
||||||
- find . -type f -name "*.go" | grep -v "/pb/" | xargs misspell -error -locale US
|
- find . -type f -name "*.go" | grep -v "/pb/" | xargs misspell -error -locale US
|
||||||
- staticcheck -tests=false ./...
|
- if [[ "$TRAVIS_GO_VERSION" =~ 1.19 ]]; then staticcheck -tests=false ./...; fi
|
||||||
script:
|
script:
|
||||||
- go test -v -race . -modfile go_tests.mod
|
- go test -v -race . -modfile go_tests.mod
|
||||||
after_success:
|
after_success:
|
||||||
- if [[ "$TRAVIS_GO_VERSION" =~ 1.16 ]]; then ./scripts/cov.sh TRAVIS; fi
|
- if [[ "$TRAVIS_GO_VERSION" =~ 1.19 ]]; then ./scripts/cov.sh TRAVIS; fi
|
||||||
|
6
gateway/vendor/github.com/nats-io/stan.go/README.md
generated
vendored
6
gateway/vendor/github.com/nats-io/stan.go/README.md
generated
vendored
@ -3,8 +3,8 @@
|
|||||||
NATS Streaming is an extremely performant, lightweight reliable streaming platform powered by [NATS](https://nats.io).
|
NATS Streaming is an extremely performant, lightweight reliable streaming platform powered by [NATS](https://nats.io).
|
||||||
|
|
||||||
[](https://www.apache.org/licenses/LICENSE-2.0)
|
[](https://www.apache.org/licenses/LICENSE-2.0)
|
||||||
[](https://travis-ci.com/github/nats-io/stan.go)
|
[](https://travis-ci.com/github/nats-io/stan.go)
|
||||||
[](https://coveralls.io/r/nats-io/stan.go?branch=master)
|
[](https://coveralls.io/r/nats-io/stan.go?branch=main)
|
||||||
[](http://godoc.org/github.com/nats-io/stan.go)
|
[](http://godoc.org/github.com/nats-io/stan.go)
|
||||||
|
|
||||||
NATS Streaming provides the following high-level feature set:
|
NATS Streaming provides the following high-level feature set:
|
||||||
@ -30,7 +30,7 @@ When using or transitioning to Go modules support:
|
|||||||
```bash
|
```bash
|
||||||
# Go client latest or explicit version
|
# Go client latest or explicit version
|
||||||
go get github.com/nats-io/stan.go/@latest
|
go get github.com/nats-io/stan.go/@latest
|
||||||
go get github.com/nats-io/stan.go/@v0.9.0
|
go get github.com/nats-io/stan.go/@v0.10.4
|
||||||
```
|
```
|
||||||
|
|
||||||
## Important things to know about reconnections.
|
## Important things to know about reconnections.
|
||||||
|
6
gateway/vendor/github.com/nats-io/stan.go/go_tests.mod
generated
vendored
6
gateway/vendor/github.com/nats-io/stan.go/go_tests.mod
generated
vendored
@ -4,8 +4,8 @@ go 1.14
|
|||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/gogo/protobuf v1.3.2
|
github.com/gogo/protobuf v1.3.2
|
||||||
github.com/nats-io/nats-server/v2 v2.2.5
|
github.com/nats-io/nats-server/v2 v2.9.11
|
||||||
github.com/nats-io/nats-streaming-server v0.21.3-0.20210521153059-e071c9354f65
|
github.com/nats-io/nats-streaming-server v0.25.3-0.20230111211943-d51efd049657
|
||||||
github.com/nats-io/nats.go v1.11.0
|
github.com/nats-io/nats.go v1.22.1
|
||||||
github.com/nats-io/nuid v1.0.1
|
github.com/nats-io/nuid v1.0.1
|
||||||
)
|
)
|
||||||
|
119
gateway/vendor/github.com/nats-io/stan.go/go_tests.sum
generated
vendored
119
gateway/vendor/github.com/nats-io/stan.go/go_tests.sum
generated
vendored
@ -5,10 +5,12 @@ github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24
|
|||||||
github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible/go.mod h1:nmEj6Dob7S7YxXgwXpfOuvO54S+tGdZdw9fuRZt25Ag=
|
github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible/go.mod h1:nmEj6Dob7S7YxXgwXpfOuvO54S+tGdZdw9fuRZt25Ag=
|
||||||
github.com/circonus-labs/circonusllhist v0.1.3/go.mod h1:kMXHVDlOchFAehlya5ePtbp5jckzBHf4XRpQvBOLI+I=
|
github.com/circonus-labs/circonusllhist v0.1.3/go.mod h1:kMXHVDlOchFAehlya5ePtbp5jckzBHf4XRpQvBOLI+I=
|
||||||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||||
|
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||||
github.com/fatih/color v1.7.0 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys=
|
github.com/fatih/color v1.7.0 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys=
|
||||||
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
|
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
|
||||||
github.com/go-sql-driver/mysql v1.6.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg=
|
github.com/go-sql-driver/mysql v1.7.0 h1:ueSltNNllEqE3qcWBTD0iQd3IpL/6U+mJxLkazJ7YPc=
|
||||||
|
github.com/go-sql-driver/mysql v1.7.0/go.mod h1:OXbVy3sEdcQ2Doequ6Z5BW6fXNQTmx+9S1MCJN5yJMI=
|
||||||
github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
|
github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
|
||||||
github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
|
github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
|
||||||
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||||
@ -17,86 +19,99 @@ github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:x
|
|||||||
github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs=
|
github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs=
|
||||||
github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w=
|
github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w=
|
||||||
github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0=
|
github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0=
|
||||||
|
github.com/golang/protobuf v1.4.2 h1:+Z5KGCizgyZCbGh1KZqA0fcLLkwbsjIzS4aV2v7wJX0=
|
||||||
github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
|
github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
|
||||||
github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
|
github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
|
||||||
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
|
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
|
||||||
github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||||
github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg=
|
||||||
|
github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
|
||||||
github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
|
github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
|
||||||
github.com/hashicorp/go-hclog v0.9.1/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ=
|
github.com/hashicorp/go-hclog v0.9.1/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ=
|
||||||
github.com/hashicorp/go-hclog v0.16.1 h1:IVQwpTGNRRIHafnTs2dQLIk4ENtneRIEEJWOVDqz99o=
|
github.com/hashicorp/go-hclog v1.1.0 h1:QsGcniKx5/LuX2eYoeL+Np3UKYPNaN7YKpTh29h8rbw=
|
||||||
github.com/hashicorp/go-hclog v0.16.1/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ=
|
github.com/hashicorp/go-hclog v1.1.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ=
|
||||||
github.com/hashicorp/go-immutable-radix v1.0.0 h1:AKDB1HM5PWEA7i4nhcpwOrO2byshxBjXVn/J/3+z5/0=
|
github.com/hashicorp/go-immutable-radix v1.0.0 h1:AKDB1HM5PWEA7i4nhcpwOrO2byshxBjXVn/J/3+z5/0=
|
||||||
github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60=
|
github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60=
|
||||||
github.com/hashicorp/go-msgpack v0.5.5/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM=
|
github.com/hashicorp/go-msgpack v0.5.5/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM=
|
||||||
github.com/hashicorp/go-msgpack v1.1.5 h1:9byZdVjKTe5mce63pRVNP1L7UAmdHOTEMGehn6KvJWs=
|
github.com/hashicorp/go-msgpack v1.1.5 h1:9byZdVjKTe5mce63pRVNP1L7UAmdHOTEMGehn6KvJWs=
|
||||||
github.com/hashicorp/go-msgpack v1.1.5/go.mod h1:gWVc3sv/wbDmR3rQsj1CAktEZzoz1YNK9NfGLXJ69/4=
|
github.com/hashicorp/go-msgpack v1.1.5/go.mod h1:gWVc3sv/wbDmR3rQsj1CAktEZzoz1YNK9NfGLXJ69/4=
|
||||||
github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs=
|
github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs=
|
||||||
|
github.com/hashicorp/go-uuid v1.0.0 h1:RS8zrF7PhGwyNPOtxSClXXj9HA8feRnJzgnI1RJCSnM=
|
||||||
github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
|
github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
|
||||||
github.com/hashicorp/golang-lru v0.5.0 h1:CL2msUPvZTLb5O648aiLNJw3hnBxN2+1Jq8rCOH9wdo=
|
github.com/hashicorp/golang-lru v0.5.0 h1:CL2msUPvZTLb5O648aiLNJw3hnBxN2+1Jq8rCOH9wdo=
|
||||||
github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
|
github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
|
||||||
github.com/hashicorp/raft v1.3.1 h1:zDT8ke8y2aP4wf9zPTB2uSIeavJ3Hx/ceY4jxI2JxuY=
|
github.com/hashicorp/raft v1.3.11 h1:p3v6gf6l3S797NnK5av3HcczOC1T5CLoaRvg0g9ys4A=
|
||||||
github.com/hashicorp/raft v1.3.1/go.mod h1:4Ak7FSPnuvmb0GV6vgIAJ4vYT4bek9bb6Q+7HVbyzqM=
|
github.com/hashicorp/raft v1.3.11/go.mod h1:J8naEwc6XaaCfts7+28whSeRvCqTd6e20BlCU3LtEO4=
|
||||||
github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
|
github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
|
||||||
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
|
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
|
||||||
github.com/klauspost/compress v1.11.12 h1:famVnQVu7QwryBN4jNseQdUKES71ZAOnB6UQQJPZvqk=
|
github.com/klauspost/compress v1.15.11 h1:Lcadnb3RKGin4FYM/orgq0qde+nc15E5Cbqg4B9Sx9c=
|
||||||
github.com/klauspost/compress v1.11.12/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs=
|
github.com/klauspost/compress v1.15.11/go.mod h1:QPwzmACJjUTFsnSHH934V6woptycfrDDJnH7hvFVbGM=
|
||||||
github.com/lib/pq v1.10.2/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
|
github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
|
||||||
|
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
|
||||||
|
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
|
||||||
|
github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
|
||||||
|
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
|
||||||
|
github.com/lib/pq v1.10.4 h1:SO9z7FRPzA03QhHKJrH5BXA6HU1rS4V2nIVrrNC1iYk=
|
||||||
|
github.com/lib/pq v1.10.4/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
|
||||||
github.com/mattn/go-colorable v0.1.4 h1:snbPLB8fVfU9iwbbo30TPtbLRzwWu6aJS6Xh4eaaviA=
|
github.com/mattn/go-colorable v0.1.4 h1:snbPLB8fVfU9iwbbo30TPtbLRzwWu6aJS6Xh4eaaviA=
|
||||||
github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
|
github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
|
||||||
github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
|
github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
|
||||||
github.com/mattn/go-isatty v0.0.10 h1:qxFzApOv4WsAL965uUPIsXzAKCZxN2p9UqdhFS4ZW10=
|
github.com/mattn/go-isatty v0.0.10 h1:qxFzApOv4WsAL965uUPIsXzAKCZxN2p9UqdhFS4ZW10=
|
||||||
github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcMEpPG5Rm84=
|
github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcMEpPG5Rm84=
|
||||||
github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
|
github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
|
||||||
github.com/minio/highwayhash v1.0.1 h1:dZ6IIu8Z14VlC0VpfKofAhCy74wu/Qb5gcn52yWoz/0=
|
github.com/minio/highwayhash v1.0.2 h1:Aak5U0nElisjDCfPSG79Tgzkn2gl66NxOMspRrKnA/g=
|
||||||
github.com/minio/highwayhash v1.0.1/go.mod h1:BQskDq+xkJ12lmlUUi7U0M5Swg3EWR+dLTk+kldvVxY=
|
github.com/minio/highwayhash v1.0.2/go.mod h1:BQskDq+xkJ12lmlUUi7U0M5Swg3EWR+dLTk+kldvVxY=
|
||||||
github.com/nats-io/jwt v0.3.2/go.mod h1:/euKqTS1ZD+zzjYrY7pseZrTtWQSjujC7xjPc8wL6eU=
|
github.com/nats-io/jwt/v2 v2.3.0 h1:z2mA1a7tIf5ShggOFlR1oBPgd6hGqcDYsISxZByUzdI=
|
||||||
github.com/nats-io/jwt v1.2.2 h1:w3GMTO969dFg+UOKTmmyuu7IGdusK+7Ytlt//OYH/uU=
|
github.com/nats-io/jwt/v2 v2.3.0/go.mod h1:0tqz9Hlu6bCBFLWAASKhE5vUA4c24L9KPUUgvwumE/k=
|
||||||
github.com/nats-io/jwt v1.2.2/go.mod h1:/xX356yQA6LuXI9xWW7mZNpxgF2mBmGecH+Fj34sP5Q=
|
github.com/nats-io/nats-server/v2 v2.9.11 h1:4y5SwWvWI59V5mcqtuoqKq6L9NDUydOP3Ekwuwl8cZI=
|
||||||
github.com/nats-io/jwt/v2 v2.0.2 h1:ejVCLO8gu6/4bOKIHQpmB5UhhUJfAQw55yvLWpfmKjI=
|
github.com/nats-io/nats-server/v2 v2.9.11/go.mod h1:b0oVuxSlkvS3ZjMkncFeACGyZohbO4XhSqW1Lt7iRRY=
|
||||||
github.com/nats-io/jwt/v2 v2.0.2/go.mod h1:VRP+deawSXyhNjXmxPCHskrR6Mq50BqpEI5SEcNiGlY=
|
github.com/nats-io/nats-streaming-server v0.25.3-0.20230111211943-d51efd049657 h1:cH9IoGVMD3j0ThtZuKcQXPqxxFWKOvYDBlIgBcImlGM=
|
||||||
github.com/nats-io/nats-server/v2 v2.2.5 h1:OOPaldr3oi0JBpYHiEzsaUce0289YpuVIYjFIfBo030=
|
github.com/nats-io/nats-streaming-server v0.25.3-0.20230111211943-d51efd049657/go.mod h1:pnMmoTI5KLlDXfFi/gdnsFSrbvFkA1bxBLWlyBmocdk=
|
||||||
github.com/nats-io/nats-server/v2 v2.2.5/go.mod h1:sEnFaxqe09cDmfMgACxZbziXnhQFhwk+aKkZjBBRYrI=
|
github.com/nats-io/nats.go v1.16.0/go.mod h1:BPko4oXsySz4aSWeFgOHLZs3G4Jq4ZAyE6/zMCxRT6w=
|
||||||
github.com/nats-io/nats-streaming-server v0.21.3-0.20210521153059-e071c9354f65 h1:CBuz8Wd0V4j1/ZG7g/3di7YPnWBcySHhEOOW0Iq71UM=
|
github.com/nats-io/nats.go v1.19.0/go.mod h1:tLqubohF7t4z3du1QDPYJIQQyhb4wl6DhjxEajSI7UA=
|
||||||
github.com/nats-io/nats-streaming-server v0.21.3-0.20210521153059-e071c9354f65/go.mod h1:WLeptf8OwgKJ+Z9dQCIG8hOJA+9Gjd8Oj6AcWhXRGZE=
|
github.com/nats-io/nats.go v1.22.1 h1:XzfqDspY0RNufzdrB8c4hFR+R3dahkxlpWe5+IWJzbE=
|
||||||
github.com/nats-io/nats.go v1.10.0/go.mod h1:AjGArbfyR50+afOUotNX2Xs5SYHf+CoOa5HH1eEl2HE=
|
github.com/nats-io/nats.go v1.22.1/go.mod h1:tLqubohF7t4z3du1QDPYJIQQyhb4wl6DhjxEajSI7UA=
|
||||||
github.com/nats-io/nats.go v1.11.0 h1:L263PZkrmkRJRJT2YHU8GwWWvEvmr9/LUKuJTXsF32k=
|
|
||||||
github.com/nats-io/nats.go v1.11.0/go.mod h1:BPko4oXsySz4aSWeFgOHLZs3G4Jq4ZAyE6/zMCxRT6w=
|
|
||||||
github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w=
|
|
||||||
github.com/nats-io/nkeys v0.1.4/go.mod h1:XdZpAbhgyyODYqjTawOnIOI7VlbKSarI9Gfy1tqEu/s=
|
|
||||||
github.com/nats-io/nkeys v0.2.0/go.mod h1:XdZpAbhgyyODYqjTawOnIOI7VlbKSarI9Gfy1tqEu/s=
|
|
||||||
github.com/nats-io/nkeys v0.3.0 h1:cgM5tL53EvYRU+2YLXIK0G2mJtK12Ft9oeooSZMA2G8=
|
github.com/nats-io/nkeys v0.3.0 h1:cgM5tL53EvYRU+2YLXIK0G2mJtK12Ft9oeooSZMA2G8=
|
||||||
github.com/nats-io/nkeys v0.3.0/go.mod h1:gvUNGjVcM2IPr5rCsRsC6Wb3Hr2CQAm08dsxtV6A5y4=
|
github.com/nats-io/nkeys v0.3.0/go.mod h1:gvUNGjVcM2IPr5rCsRsC6Wb3Hr2CQAm08dsxtV6A5y4=
|
||||||
github.com/nats-io/nuid v1.0.1 h1:5iA8DT8V7q8WK2EScv2padNa/rTESc1KdnPw4TC2paw=
|
github.com/nats-io/nuid v1.0.1 h1:5iA8DT8V7q8WK2EScv2padNa/rTESc1KdnPw4TC2paw=
|
||||||
github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c=
|
github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c=
|
||||||
github.com/nats-io/stan.go v0.8.3/go.mod h1:Ejm8bbHnMTSptU6uNMAVuxeapMJYBB/Ml3ej6z4GoSY=
|
github.com/nats-io/stan.go v0.10.3/go.mod h1:Cgf5zk6kKpOCqqUIJeuBz6ZDz9osT791VhS6m28sSQQ=
|
||||||
|
github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0MwY=
|
||||||
github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
|
github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
|
||||||
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||||
|
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
||||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||||
|
github.com/prashantv/gostub v1.1.0/go.mod h1:A5zLQHz7ieHGG7is6LLXLz7I8+3LZzsrV0P1IAHhP5U=
|
||||||
github.com/prometheus/client_golang v0.9.2/go.mod h1:OsXs2jCmiKlQ1lTBmv21f2mNfw4xf/QclQDMrYNZzcM=
|
github.com/prometheus/client_golang v0.9.2/go.mod h1:OsXs2jCmiKlQ1lTBmv21f2mNfw4xf/QclQDMrYNZzcM=
|
||||||
github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo=
|
github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo=
|
||||||
github.com/prometheus/common v0.0.0-20181126121408-4724e9255275/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro=
|
github.com/prometheus/common v0.0.0-20181126121408-4724e9255275/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro=
|
||||||
github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
|
github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
|
||||||
github.com/prometheus/procfs v0.6.0 h1:mxy4L2jP6qMonqmq+aTtOx1ifVWUgG/TAmntgbh3xv4=
|
github.com/prometheus/procfs v0.8.0 h1:ODq8ZFEaYeCaZOJlZZdJA2AbQR98dSHSM1KW/You5mo=
|
||||||
github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA=
|
github.com/prometheus/procfs v0.8.0/go.mod h1:z7EfXMXOkbkqb9IINtpCn86r/to3BnA0uaxHdg830/4=
|
||||||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||||
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
|
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
|
||||||
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
|
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
|
||||||
|
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||||
|
github.com/stretchr/testify v1.7.1 h1:5TQK59W5E3v0r2duFAb7P95B6hEeOyEnHRa8MjYSMTY=
|
||||||
|
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||||
github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM=
|
github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM=
|
||||||
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||||
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||||
go.etcd.io/bbolt v1.3.5 h1:XAzx9gjCb0Rxj7EoqcClPD1d5ZBxZJk0jbuoPHenBt0=
|
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
|
||||||
go.etcd.io/bbolt v1.3.5/go.mod h1:G5EMThwa9y8QZGBClrRx5EY+Yw9kAhnjy3bSjsnlVTQ=
|
go.etcd.io/bbolt v1.3.6 h1:/ecaJf0sk1l4l6V4awd65v2C3ILy7MSj+s/x1ADCIMU=
|
||||||
|
go.etcd.io/bbolt v1.3.6/go.mod h1:qXsaaIqmgQH0T+OPdb99Bf+PKfBBQVAdyD6TY9G8XM4=
|
||||||
|
go.uber.org/automaxprocs v1.5.1/go.mod h1:BF4eumQw0P9GtnuxxovUd06vwm1o18oMzFtK66vU6XU=
|
||||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||||
golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
|
||||||
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||||
golang.org/x/crypto v0.0.0-20200323165209-0ec3e9974c59/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
|
|
||||||
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
|
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
|
||||||
golang.org/x/crypto v0.0.0-20210314154223-e6e6c4f2bb5b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4=
|
golang.org/x/crypto v0.0.0-20210314154223-e6e6c4f2bb5b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4=
|
||||||
golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a h1:kr2P4QFmQr29mSLA43kwrOcgcReGTfbE9N577tCTuBc=
|
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
||||||
golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a/go.mod h1:P+XmwS30IXTQdn5tA2iutPOUgjI07+tq3H3K9MVA1s8=
|
golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
|
||||||
|
golang.org/x/crypto v0.5.0 h1:U/0M97KRkSFvyD/3FSmdP5W5swImpNgle/EHFhOsQPE=
|
||||||
|
golang.org/x/crypto v0.5.0/go.mod h1:NK/OQwhpMQP3MwtdjgLlYHnH9ebylxKWv3e0fK+mkQU=
|
||||||
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||||
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||||
|
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
|
||||||
golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||||
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||||
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||||
@ -104,31 +119,46 @@ golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLL
|
|||||||
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||||
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
|
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
|
||||||
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
|
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
|
||||||
|
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
||||||
|
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
|
||||||
|
golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws=
|
||||||
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
golang.org/x/sync v0.0.0-20190423024810-112230192c58/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-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
|
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
golang.org/x/sys v0.0.0-20190130150945-aca44879d564/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
golang.org/x/sys v0.0.0-20190130150945-aca44879d564/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20200923182605-d9f96fdee20d/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-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c h1:VwygUrnw9jn88c4u8GD3rZQbqrP/tgas88tPUbBxQrk=
|
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
|
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
|
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
|
golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
|
golang.org/x/sys v0.4.1-0.20230105183443-b8be2fde2a9e h1:Lw2b7QX5zDuEsD5ZkJNRUGEGkLuho3UAKsO25Ucv140=
|
||||||
|
golang.org/x/sys v0.4.1-0.20230105183443-b8be2fde2a9e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
||||||
|
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
||||||
|
golang.org/x/term v0.4.0/go.mod h1:9P2UbLfCdcvo3p/nzKvsmas4TnlujnuoV9hGgYzW1lQ=
|
||||||
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=
|
||||||
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||||
golang.org/x/time v0.0.0-20200416051211-89c76fbcd5d1 h1:NusfzzA6yGQ+ua51ck7E3omNUX/JuqbFSaRGqU8CcLI=
|
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||||
golang.org/x/time v0.0.0-20200416051211-89c76fbcd5d1/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
||||||
|
golang.org/x/text v0.6.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
|
||||||
|
golang.org/x/time v0.0.0-20220922220347-f3bd1da661af h1:Yx9k8YCG3dvF87UAn2tu2HQLf2dt/eR1bXxpLMWeH+Y=
|
||||||
|
golang.org/x/time v0.0.0-20220922220347-f3bd1da661af/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||||
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||||
golang.org/x/tools v0.0.0-20190424220101-1e8e1cfdf96b/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
|
golang.org/x/tools v0.0.0-20190424220101-1e8e1cfdf96b/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
|
||||||
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||||
golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||||
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||||
|
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
|
||||||
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=
|
||||||
@ -138,4 +168,11 @@ google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ
|
|||||||
google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
|
google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
|
||||||
google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE=
|
google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE=
|
||||||
google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo=
|
google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo=
|
||||||
|
google.golang.org/protobuf v1.23.0 h1:4MY060fB1DLGMB/7MBTLnwQUY6+F09GEiz6SsrNqyzM=
|
||||||
google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
|
google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
|
||||||
|
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||||
|
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY=
|
||||||
|
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||||
|
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||||
|
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo=
|
||||||
|
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||||
|
99
gateway/vendor/github.com/nats-io/stan.go/stan.go
generated
vendored
99
gateway/vendor/github.com/nats-io/stan.go/stan.go
generated
vendored
@ -26,7 +26,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// Version is the NATS Streaming Go Client version
|
// Version is the NATS Streaming Go Client version
|
||||||
const Version = "0.9.0"
|
const Version = "0.10.4"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// DefaultNatsURL is the default URL the client connects to
|
// DefaultNatsURL is the default URL the client connects to
|
||||||
@ -137,8 +137,16 @@ type Options struct {
|
|||||||
// the NATS streaming connection does NOT close this NATS connection.
|
// the NATS streaming connection does NOT close this NATS connection.
|
||||||
// It is the responsibility of the application to manage the lifetime of
|
// It is the responsibility of the application to manage the lifetime of
|
||||||
// the supplied NATS connection.
|
// the supplied NATS connection.
|
||||||
|
//
|
||||||
|
// DEPRECATED: Users should provide NATS options through NatsOptions()
|
||||||
|
// instead to configure the underlying NATS connection.
|
||||||
NatsConn *nats.Conn
|
NatsConn *nats.Conn
|
||||||
|
|
||||||
|
// NatsOptions is an array of NATS options to configure the NATS connection
|
||||||
|
// that will be created and owned by the library. Note that some options
|
||||||
|
// may be overridden by the library.
|
||||||
|
NatsOptions []nats.Option
|
||||||
|
|
||||||
// ConnectTimeout is the timeout for the initial Connect(). This value is also
|
// ConnectTimeout is the timeout for the initial Connect(). This value is also
|
||||||
// used for some of the internal request/replies with the cluster.
|
// used for some of the internal request/replies with the cluster.
|
||||||
ConnectTimeout time.Duration
|
ConnectTimeout time.Duration
|
||||||
@ -171,6 +179,21 @@ type Options struct {
|
|||||||
// ConnectionLostCB specifies the handler to be invoked when the connection
|
// ConnectionLostCB specifies the handler to be invoked when the connection
|
||||||
// is permanently lost.
|
// is permanently lost.
|
||||||
ConnectionLostCB ConnectionLostHandler
|
ConnectionLostCB ConnectionLostHandler
|
||||||
|
|
||||||
|
// AllowCloseRetry specifies that a failed connection Close() can be retried.
|
||||||
|
//
|
||||||
|
// By default, after the first call to Close(), the underlying NATS connection
|
||||||
|
// is closed (when owned by the library), regardless if the library gets a
|
||||||
|
// response from the server or not, and calling Close() again is a no-op.
|
||||||
|
// With AllowCloseRetry set to true, if the library fails to get a response
|
||||||
|
// from the close protocol, calling Close() again is possible and the library
|
||||||
|
// will try to resend the protocol. It means that the underlying NATS connection
|
||||||
|
// won't be closed until the library successfully gets a response from the server.
|
||||||
|
// This behavior can have side effects in that the underlying NATS connection
|
||||||
|
// may stay open (or reconnect) when otherwise it would have been closed after
|
||||||
|
// calling Close(). So AllowCloseRetry is disabled by default to maintain
|
||||||
|
// expected default behavior in regard with the underlying NATS connection state.
|
||||||
|
AllowCloseRetry bool
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetDefaultOptions returns default configuration options for the client.
|
// GetDefaultOptions returns default configuration options for the client.
|
||||||
@ -246,6 +269,9 @@ func MaxPubAcksInflight(max int) Option {
|
|||||||
// NatsConn is an Option to set the underlying NATS connection to be used
|
// NatsConn is an Option to set the underlying NATS connection to be used
|
||||||
// by a streaming connection object. When such option is set, closing the
|
// by a streaming connection object. When such option is set, closing the
|
||||||
// streaming connection does not close the provided NATS connection.
|
// streaming connection does not close the provided NATS connection.
|
||||||
|
//
|
||||||
|
// DEPRECATED: Users should use NatsOptions instead to configure the
|
||||||
|
// underlying NATS Connection created by the Streaming connection.
|
||||||
func NatsConn(nc *nats.Conn) Option {
|
func NatsConn(nc *nats.Conn) Option {
|
||||||
return func(o *Options) error {
|
return func(o *Options) error {
|
||||||
o.NatsConn = nc
|
o.NatsConn = nc
|
||||||
@ -253,6 +279,16 @@ func NatsConn(nc *nats.Conn) Option {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NatsOptions is an Option to provide the NATS options that will be used
|
||||||
|
// to create the underlying NATS connection to be used by a streaming
|
||||||
|
// connection object.
|
||||||
|
func NatsOptions(opts ...nats.Option) Option {
|
||||||
|
return func(o *Options) error {
|
||||||
|
o.NatsOptions = append([]nats.Option(nil), opts...)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Pings is an Option to set the ping interval and max out values.
|
// Pings is an Option to set the ping interval and max out values.
|
||||||
// The interval needs to be at least 1 and represents the number
|
// The interval needs to be at least 1 and represents the number
|
||||||
// of seconds.
|
// of seconds.
|
||||||
@ -287,6 +323,15 @@ func SetConnectionLostHandler(handler ConnectionLostHandler) Option {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// AllowCloseRetry is an Option that allows a failed connection close to be retried.
|
||||||
|
// See option AllowCloseRetry for more information.
|
||||||
|
func AllowCloseRetry(allow bool) Option {
|
||||||
|
return func(o *Options) error {
|
||||||
|
o.AllowCloseRetry = allow
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// A conn represents a bare connection to a stan cluster.
|
// A conn represents a bare connection to a stan cluster.
|
||||||
type conn struct {
|
type conn struct {
|
||||||
sync.RWMutex
|
sync.RWMutex
|
||||||
@ -310,6 +355,7 @@ type conn struct {
|
|||||||
pubNUID *nuid.NUID // NUID generator for published messages.
|
pubNUID *nuid.NUID // NUID generator for published messages.
|
||||||
connLostCB ConnectionLostHandler
|
connLostCB ConnectionLostHandler
|
||||||
closed bool
|
closed bool
|
||||||
|
fullyClosed bool
|
||||||
ping pingInfo
|
ping pingInfo
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -357,15 +403,22 @@ func Connect(stanClusterID, clientID string, options ...Option) (Conn, error) {
|
|||||||
c.nc = c.opts.NatsConn
|
c.nc = c.opts.NatsConn
|
||||||
// Create a NATS connection if it doesn't exist.
|
// Create a NATS connection if it doesn't exist.
|
||||||
if c.nc == nil {
|
if c.nc == nil {
|
||||||
|
nopts := c.opts.NatsOptions
|
||||||
|
nopts = append(nopts, nats.MaxReconnects(-1), nats.ReconnectBufSize(-1))
|
||||||
|
// Set name only if not provided by the user...
|
||||||
|
var do nats.Options
|
||||||
|
for _, o := range nopts {
|
||||||
|
o(&do)
|
||||||
|
}
|
||||||
|
if do.Name == "" {
|
||||||
|
nopts = append(nopts, nats.Name(clientID))
|
||||||
|
}
|
||||||
// We will set the max reconnect attempts to -1 (infinite)
|
// We will set the max reconnect attempts to -1 (infinite)
|
||||||
// and the reconnect buffer to -1 to prevent any buffering
|
// and the reconnect buffer to -1 to prevent any buffering
|
||||||
// (which may cause a published message to be flushed on
|
// (which may cause a published message to be flushed on
|
||||||
// reconnect while the API may have returned an error due
|
// reconnect while the API may have returned an error due
|
||||||
// to PubAck timeout.
|
// to PubAck timeout.
|
||||||
nc, err := nats.Connect(c.opts.NatsURL,
|
nc, err := nats.Connect(c.opts.NatsURL, nopts...)
|
||||||
nats.Name(clientID),
|
|
||||||
nats.MaxReconnects(-1),
|
|
||||||
nats.ReconnectBufSize(-1))
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@ -644,21 +697,23 @@ func (sc *conn) Close() error {
|
|||||||
sc.Lock()
|
sc.Lock()
|
||||||
defer sc.Unlock()
|
defer sc.Unlock()
|
||||||
|
|
||||||
if sc.closed {
|
// If we are fully closed, simply return.
|
||||||
// We are already closed.
|
if sc.fullyClosed {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
// Signals we are closed.
|
// If this is the very first Close() call, do some internal cleanup,
|
||||||
sc.closed = true
|
// otherwise, simply send the close protocol message.
|
||||||
|
if !sc.closed {
|
||||||
// Capture for NATS calls below.
|
sc.closed = true
|
||||||
if sc.ncOwned {
|
sc.cleanupOnClose(ErrConnectionClosed)
|
||||||
defer sc.nc.Close()
|
if !sc.opts.AllowCloseRetry {
|
||||||
|
sc.fullyClosed = true
|
||||||
|
if sc.ncOwned {
|
||||||
|
defer sc.nc.Close()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Now close ourselves.
|
|
||||||
sc.cleanupOnClose(ErrConnectionClosed)
|
|
||||||
|
|
||||||
req := &pb.CloseRequest{ClientID: sc.clientID}
|
req := &pb.CloseRequest{ClientID: sc.clientID}
|
||||||
b, _ := req.Marshal()
|
b, _ := req.Marshal()
|
||||||
reply, err := sc.nc.Request(sc.closeRequests, b, sc.opts.ConnectTimeout)
|
reply, err := sc.nc.Request(sc.closeRequests, b, sc.opts.ConnectTimeout)
|
||||||
@ -673,6 +728,11 @@ func (sc *conn) Close() error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
// As long as we got a valid response, we consider the connection fully closed.
|
||||||
|
sc.fullyClosed = true
|
||||||
|
if sc.ncOwned && sc.opts.AllowCloseRetry {
|
||||||
|
sc.nc.Close()
|
||||||
|
}
|
||||||
if cr.Error != "" {
|
if cr.Error != "" {
|
||||||
return errors.New(cr.Error)
|
return errors.New(cr.Error)
|
||||||
}
|
}
|
||||||
@ -872,14 +932,17 @@ func (sc *conn) processMsg(raw *nats.Msg) {
|
|||||||
msg.Sub = sub
|
msg.Sub = sub
|
||||||
|
|
||||||
sub.RLock()
|
sub.RLock()
|
||||||
|
if sub.closed {
|
||||||
|
sub.RUnlock()
|
||||||
|
return
|
||||||
|
}
|
||||||
cb := sub.cb
|
cb := sub.cb
|
||||||
ackSubject := sub.ackInbox
|
ackSubject := sub.ackInbox
|
||||||
isManualAck := sub.opts.ManualAcks
|
isManualAck := sub.opts.ManualAcks
|
||||||
subsc := sub.sc // Can be nil if sub has been unsubscribed.
|
|
||||||
sub.RUnlock()
|
sub.RUnlock()
|
||||||
|
|
||||||
// Perform the callback
|
// Perform the callback
|
||||||
if cb != nil && subsc != nil {
|
if cb != nil {
|
||||||
cb(msg)
|
cb(msg)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
51
gateway/vendor/github.com/nats-io/stan.go/sub.go
generated
vendored
51
gateway/vendor/github.com/nats-io/stan.go/sub.go
generated
vendored
@ -101,6 +101,12 @@ type subscription struct {
|
|||||||
inboxSub *nats.Subscription
|
inboxSub *nats.Subscription
|
||||||
opts SubscriptionOptions
|
opts SubscriptionOptions
|
||||||
cb MsgHandler
|
cb MsgHandler
|
||||||
|
// closed indicate that sub.Close() was invoked, but fullyClosed
|
||||||
|
// is only set if the close/unsub protocol was successful. This
|
||||||
|
// allow the user to be able to call sub.Close() several times
|
||||||
|
// in case an error is returned.
|
||||||
|
closed bool
|
||||||
|
fullyClosed bool
|
||||||
}
|
}
|
||||||
|
|
||||||
// SubscriptionOption is a function on the options for a subscription.
|
// SubscriptionOption is a function on the options for a subscription.
|
||||||
@ -247,6 +253,16 @@ func (sc *conn) subscribe(subject, qgroup string, cb MsgHandler, options ...Subs
|
|||||||
sc.subMap[sub.inbox] = sub
|
sc.subMap[sub.inbox] = sub
|
||||||
sc.Unlock()
|
sc.Unlock()
|
||||||
|
|
||||||
|
doClean := true
|
||||||
|
defer func() {
|
||||||
|
if doClean {
|
||||||
|
sc.Lock()
|
||||||
|
//Un-register subscription.
|
||||||
|
delete(sc.subMap, sub.inbox)
|
||||||
|
sc.Unlock()
|
||||||
|
}
|
||||||
|
}()
|
||||||
|
|
||||||
// Hold lock throughout.
|
// Hold lock throughout.
|
||||||
sub.Lock()
|
sub.Lock()
|
||||||
defer sub.Unlock()
|
defer sub.Unlock()
|
||||||
@ -319,6 +335,9 @@ func (sc *conn) subscribe(subject, qgroup string, cb MsgHandler, options ...Subs
|
|||||||
}
|
}
|
||||||
sub.ackInbox = r.AckInbox
|
sub.ackInbox = r.AckInbox
|
||||||
|
|
||||||
|
// Prevent cleanup on exit.
|
||||||
|
doClean = false
|
||||||
|
|
||||||
return sub, nil
|
return sub, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -414,15 +433,22 @@ func (sub *subscription) SetPendingLimits(msgLimit, bytesLimit int) error {
|
|||||||
// given boolean.
|
// given boolean.
|
||||||
func (sub *subscription) closeOrUnsubscribe(doClose bool) error {
|
func (sub *subscription) closeOrUnsubscribe(doClose bool) error {
|
||||||
sub.Lock()
|
sub.Lock()
|
||||||
sc := sub.sc
|
// If we are fully closed, return error indicating that the
|
||||||
if sc == nil {
|
// subscription is invalid. Note that conn.Close() in this case
|
||||||
// Already closed.
|
// returns nil, but keeping behavior same so we don't have breaking change.
|
||||||
|
if sub.fullyClosed {
|
||||||
sub.Unlock()
|
sub.Unlock()
|
||||||
return ErrBadSubscription
|
return ErrBadSubscription
|
||||||
}
|
}
|
||||||
sub.sc = nil
|
wasClosed := sub.closed
|
||||||
sub.inboxSub.Unsubscribe()
|
// If this is the very first Close() call, do some internal cleanup,
|
||||||
sub.inboxSub = nil
|
// otherwise, simply send the close protocol message.
|
||||||
|
if !wasClosed {
|
||||||
|
sub.closed = true
|
||||||
|
sub.inboxSub.Unsubscribe()
|
||||||
|
sub.inboxSub = nil
|
||||||
|
}
|
||||||
|
sc := sub.sc
|
||||||
sub.Unlock()
|
sub.Unlock()
|
||||||
|
|
||||||
sc.Lock()
|
sc.Lock()
|
||||||
@ -430,8 +456,9 @@ func (sub *subscription) closeOrUnsubscribe(doClose bool) error {
|
|||||||
sc.Unlock()
|
sc.Unlock()
|
||||||
return ErrConnectionClosed
|
return ErrConnectionClosed
|
||||||
}
|
}
|
||||||
|
if !wasClosed {
|
||||||
delete(sc.subMap, sub.inbox)
|
delete(sc.subMap, sub.inbox)
|
||||||
|
}
|
||||||
reqSubject := sc.unsubRequests
|
reqSubject := sc.unsubRequests
|
||||||
if doClose {
|
if doClose {
|
||||||
reqSubject = sc.subCloseRequests
|
reqSubject = sc.subCloseRequests
|
||||||
@ -464,10 +491,13 @@ func (sub *subscription) closeOrUnsubscribe(doClose bool) error {
|
|||||||
if err := r.Unmarshal(reply.Data); err != nil {
|
if err := r.Unmarshal(reply.Data); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
// As long as we got a valid response, we consider the subscription fully closed.
|
||||||
|
sub.Lock()
|
||||||
|
sub.fullyClosed = true
|
||||||
|
sub.Unlock()
|
||||||
if r.Error != "" {
|
if r.Error != "" {
|
||||||
return errors.New(r.Error)
|
return errors.New(r.Error)
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -493,13 +523,14 @@ func (msg *Msg) Ack() error {
|
|||||||
ackSubject := sub.ackInbox
|
ackSubject := sub.ackInbox
|
||||||
isManualAck := sub.opts.ManualAcks
|
isManualAck := sub.opts.ManualAcks
|
||||||
sc := sub.sc
|
sc := sub.sc
|
||||||
|
closed := sub.closed
|
||||||
sub.RUnlock()
|
sub.RUnlock()
|
||||||
|
|
||||||
// Check for error conditions.
|
// Check for error conditions.
|
||||||
if !isManualAck {
|
if !isManualAck {
|
||||||
return ErrManualAck
|
return ErrManualAck
|
||||||
}
|
}
|
||||||
if sc == nil {
|
if closed {
|
||||||
return ErrBadSubscription
|
return ErrBadSubscription
|
||||||
}
|
}
|
||||||
|
|
||||||
|
7
gateway/vendor/github.com/openfaas/nats-queue-worker/handler/handler.go
generated
vendored
7
gateway/vendor/github.com/openfaas/nats-queue-worker/handler/handler.go
generated
vendored
@ -6,7 +6,10 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CreateNATSQueue ready for asynchronous processing
|
const sharedQueue = "faas-request"
|
||||||
|
|
||||||
|
// CreateNATSQueue ready for asynchronous message processing of paylods of
|
||||||
|
// up to a maximum of 256KB in size.
|
||||||
func CreateNATSQueue(address string, port int, clusterName, channel string, clientConfig NATSConfig) (*NATSQueue, error) {
|
func CreateNATSQueue(address string, port int, clusterName, channel string, clientConfig NATSConfig) (*NATSQueue, error) {
|
||||||
var err error
|
var err error
|
||||||
natsURL := fmt.Sprintf("nats://%s:%d", address, port)
|
natsURL := fmt.Sprintf("nats://%s:%d", address, port)
|
||||||
@ -16,7 +19,7 @@ func CreateNATSQueue(address string, port int, clusterName, channel string, clie
|
|||||||
|
|
||||||
// If 'channel' is empty, use the previous default.
|
// If 'channel' is empty, use the previous default.
|
||||||
if channel == "" {
|
if channel == "" {
|
||||||
channel = "faas-request"
|
channel = sharedQueue
|
||||||
}
|
}
|
||||||
|
|
||||||
queue1 := NATSQueue{
|
queue1 := NATSQueue{
|
||||||
|
5
gateway/vendor/github.com/openfaas/nats-queue-worker/handler/nats_queue.go
generated
vendored
5
gateway/vendor/github.com/openfaas/nats-queue-worker/handler/nats_queue.go
generated
vendored
@ -2,6 +2,7 @@ package handler
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
@ -37,6 +38,10 @@ func (q *NATSQueue) Queue(req *ftypes.QueueRequest) error {
|
|||||||
if v := req.Header.Get("X-Call-Id"); len(v) > 0 {
|
if v := req.Header.Get("X-Call-Id"); len(v) > 0 {
|
||||||
callId = v
|
callId = v
|
||||||
}
|
}
|
||||||
|
max := 256 * 1000
|
||||||
|
if len(req.Body) > max {
|
||||||
|
return fmt.Errorf("request body too large for OpenFaaS CE (%d bytes), maximum: %d bytes", len(req.Body), 256*1000)
|
||||||
|
}
|
||||||
|
|
||||||
log.Printf("[%s] Queueing (%d) bytes for: %s.\n", callId, len(req.Body), req.Function)
|
log.Printf("[%s] Queueing (%d) bytes for: %s.\n", callId, len(req.Body), req.Function)
|
||||||
|
|
||||||
|
11
gateway/vendor/golang.org/x/sync/singleflight/singleflight.go
generated
vendored
11
gateway/vendor/golang.org/x/sync/singleflight/singleflight.go
generated
vendored
@ -52,10 +52,6 @@ type call struct {
|
|||||||
val interface{}
|
val interface{}
|
||||||
err error
|
err error
|
||||||
|
|
||||||
// forgotten indicates whether Forget was called with this call's key
|
|
||||||
// while the call was still in flight.
|
|
||||||
forgotten bool
|
|
||||||
|
|
||||||
// These fields are read and written with the singleflight
|
// These fields are read and written with the singleflight
|
||||||
// mutex held before the WaitGroup is done, and are read but
|
// mutex held before the WaitGroup is done, and are read but
|
||||||
// not written after the WaitGroup is done.
|
// not written after the WaitGroup is done.
|
||||||
@ -148,10 +144,10 @@ func (g *Group) doCall(c *call, key string, fn func() (interface{}, error)) {
|
|||||||
c.err = errGoexit
|
c.err = errGoexit
|
||||||
}
|
}
|
||||||
|
|
||||||
c.wg.Done()
|
|
||||||
g.mu.Lock()
|
g.mu.Lock()
|
||||||
defer g.mu.Unlock()
|
defer g.mu.Unlock()
|
||||||
if !c.forgotten {
|
c.wg.Done()
|
||||||
|
if g.m[key] == c {
|
||||||
delete(g.m, key)
|
delete(g.m, key)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -204,9 +200,6 @@ func (g *Group) doCall(c *call, key string, fn func() (interface{}, error)) {
|
|||||||
// an earlier call to complete.
|
// an earlier call to complete.
|
||||||
func (g *Group) Forget(key string) {
|
func (g *Group) Forget(key string) {
|
||||||
g.mu.Lock()
|
g.mu.Lock()
|
||||||
if c, ok := g.m[key]; ok {
|
|
||||||
c.forgotten = true
|
|
||||||
}
|
|
||||||
delete(g.m, key)
|
delete(g.m, key)
|
||||||
g.mu.Unlock()
|
g.mu.Unlock()
|
||||||
}
|
}
|
||||||
|
31
gateway/vendor/golang.org/x/sys/unix/asm_bsd_ppc64.s
generated
vendored
Normal file
31
gateway/vendor/golang.org/x/sys/unix/asm_bsd_ppc64.s
generated
vendored
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
// Copyright 2022 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build (darwin || freebsd || netbsd || openbsd) && gc
|
||||||
|
// +build darwin freebsd netbsd openbsd
|
||||||
|
// +build gc
|
||||||
|
|
||||||
|
#include "textflag.h"
|
||||||
|
|
||||||
|
//
|
||||||
|
// System call support for ppc64, BSD
|
||||||
|
//
|
||||||
|
|
||||||
|
// Just jump to package syscall's implementation for all these functions.
|
||||||
|
// The runtime may know about them.
|
||||||
|
|
||||||
|
TEXT ·Syscall(SB),NOSPLIT,$0-56
|
||||||
|
JMP syscall·Syscall(SB)
|
||||||
|
|
||||||
|
TEXT ·Syscall6(SB),NOSPLIT,$0-80
|
||||||
|
JMP syscall·Syscall6(SB)
|
||||||
|
|
||||||
|
TEXT ·Syscall9(SB),NOSPLIT,$0-104
|
||||||
|
JMP syscall·Syscall9(SB)
|
||||||
|
|
||||||
|
TEXT ·RawSyscall(SB),NOSPLIT,$0-56
|
||||||
|
JMP syscall·RawSyscall(SB)
|
||||||
|
|
||||||
|
TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
|
||||||
|
JMP syscall·RawSyscall6(SB)
|
4
gateway/vendor/golang.org/x/sys/unix/dirent.go
generated
vendored
4
gateway/vendor/golang.org/x/sys/unix/dirent.go
generated
vendored
@ -2,8 +2,8 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
|
//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
|
||||||
// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
|
// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
4
gateway/vendor/golang.org/x/sys/unix/gccgo.go
generated
vendored
4
gateway/vendor/golang.org/x/sys/unix/gccgo.go
generated
vendored
@ -2,8 +2,8 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build gccgo && !aix
|
//go:build gccgo && !aix && !hurd
|
||||||
// +build gccgo,!aix
|
// +build gccgo,!aix,!hurd
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
4
gateway/vendor/golang.org/x/sys/unix/gccgo_c.c
generated
vendored
4
gateway/vendor/golang.org/x/sys/unix/gccgo_c.c
generated
vendored
@ -2,8 +2,8 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// +build gccgo
|
//go:build gccgo && !aix && !hurd
|
||||||
// +build !aix
|
// +build gccgo,!aix,!hurd
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
4
gateway/vendor/golang.org/x/sys/unix/ioctl.go
generated
vendored
4
gateway/vendor/golang.org/x/sys/unix/ioctl.go
generated
vendored
@ -2,8 +2,8 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
|
//go:build aix || darwin || dragonfly || freebsd || hurd || linux || netbsd || openbsd || solaris
|
||||||
// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
|
// +build aix darwin dragonfly freebsd hurd linux netbsd openbsd solaris
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
20
gateway/vendor/golang.org/x/sys/unix/ioctl_linux.go
generated
vendored
20
gateway/vendor/golang.org/x/sys/unix/ioctl_linux.go
generated
vendored
@ -4,9 +4,7 @@
|
|||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
import (
|
import "unsafe"
|
||||||
"unsafe"
|
|
||||||
)
|
|
||||||
|
|
||||||
// IoctlRetInt performs an ioctl operation specified by req on a device
|
// IoctlRetInt performs an ioctl operation specified by req on a device
|
||||||
// associated with opened file descriptor fd, and returns a non-negative
|
// associated with opened file descriptor fd, and returns a non-negative
|
||||||
@ -217,3 +215,19 @@ func IoctlKCMAttach(fd int, info KCMAttach) error {
|
|||||||
func IoctlKCMUnattach(fd int, info KCMUnattach) error {
|
func IoctlKCMUnattach(fd int, info KCMUnattach) error {
|
||||||
return ioctlPtr(fd, SIOCKCMUNATTACH, unsafe.Pointer(&info))
|
return ioctlPtr(fd, SIOCKCMUNATTACH, unsafe.Pointer(&info))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// IoctlLoopGetStatus64 gets the status of the loop device associated with the
|
||||||
|
// file descriptor fd using the LOOP_GET_STATUS64 operation.
|
||||||
|
func IoctlLoopGetStatus64(fd int) (*LoopInfo64, error) {
|
||||||
|
var value LoopInfo64
|
||||||
|
if err := ioctlPtr(fd, LOOP_GET_STATUS64, unsafe.Pointer(&value)); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return &value, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// IoctlLoopSetStatus64 sets the status of the loop device associated with the
|
||||||
|
// file descriptor fd using the LOOP_SET_STATUS64 operation.
|
||||||
|
func IoctlLoopSetStatus64(fd int, value *LoopInfo64) error {
|
||||||
|
return ioctlPtr(fd, LOOP_SET_STATUS64, unsafe.Pointer(value))
|
||||||
|
}
|
||||||
|
27
gateway/vendor/golang.org/x/sys/unix/mkall.sh
generated
vendored
27
gateway/vendor/golang.org/x/sys/unix/mkall.sh
generated
vendored
@ -174,10 +174,28 @@ openbsd_arm64)
|
|||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
|
||||||
;;
|
;;
|
||||||
openbsd_mips64)
|
openbsd_mips64)
|
||||||
|
mkasm="go run mkasm.go"
|
||||||
mkerrors="$mkerrors -m64"
|
mkerrors="$mkerrors -m64"
|
||||||
mksyscall="go run mksyscall.go -openbsd"
|
mksyscall="go run mksyscall.go -openbsd -libc"
|
||||||
|
mksysctl="go run mksysctl_openbsd.go"
|
||||||
|
# Let the type of C char be signed for making the bare syscall
|
||||||
|
# API consistent across platforms.
|
||||||
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
|
||||||
|
;;
|
||||||
|
openbsd_ppc64)
|
||||||
|
mkasm="go run mkasm.go"
|
||||||
|
mkerrors="$mkerrors -m64"
|
||||||
|
mksyscall="go run mksyscall.go -openbsd -libc"
|
||||||
|
mksysctl="go run mksysctl_openbsd.go"
|
||||||
|
# Let the type of C char be signed for making the bare syscall
|
||||||
|
# API consistent across platforms.
|
||||||
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
|
||||||
|
;;
|
||||||
|
openbsd_riscv64)
|
||||||
|
mkasm="go run mkasm.go"
|
||||||
|
mkerrors="$mkerrors -m64"
|
||||||
|
mksyscall="go run mksyscall.go -openbsd -libc"
|
||||||
mksysctl="go run mksysctl_openbsd.go"
|
mksysctl="go run mksysctl_openbsd.go"
|
||||||
mksysnum="go run mksysnum.go 'https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master'"
|
|
||||||
# Let the type of C char be signed for making the bare syscall
|
# Let the type of C char be signed for making the bare syscall
|
||||||
# API consistent across platforms.
|
# API consistent across platforms.
|
||||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
|
mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
|
||||||
@ -214,11 +232,6 @@ esac
|
|||||||
if [ "$GOOSARCH" == "aix_ppc64" ]; then
|
if [ "$GOOSARCH" == "aix_ppc64" ]; then
|
||||||
# aix/ppc64 script generates files instead of writing to stdin.
|
# aix/ppc64 script generates files instead of writing to stdin.
|
||||||
echo "$mksyscall -tags $GOOS,$GOARCH $syscall_goos $GOOSARCH_in && gofmt -w zsyscall_$GOOSARCH.go && gofmt -w zsyscall_"$GOOSARCH"_gccgo.go && gofmt -w zsyscall_"$GOOSARCH"_gc.go " ;
|
echo "$mksyscall -tags $GOOS,$GOARCH $syscall_goos $GOOSARCH_in && gofmt -w zsyscall_$GOOSARCH.go && gofmt -w zsyscall_"$GOOSARCH"_gccgo.go && gofmt -w zsyscall_"$GOOSARCH"_gc.go " ;
|
||||||
elif [ "$GOOS" == "darwin" ]; then
|
|
||||||
# 1.12 and later, syscalls via libSystem
|
|
||||||
echo "$mksyscall -tags $GOOS,$GOARCH,go1.12 $syscall_goos $GOOSARCH_in |gofmt >zsyscall_$GOOSARCH.go";
|
|
||||||
# 1.13 and later, syscalls via libSystem (including syscallPtr)
|
|
||||||
echo "$mksyscall -tags $GOOS,$GOARCH,go1.13 syscall_darwin.1_13.go |gofmt >zsyscall_$GOOSARCH.1_13.go";
|
|
||||||
elif [ "$GOOS" == "illumos" ]; then
|
elif [ "$GOOS" == "illumos" ]; then
|
||||||
# illumos code generation requires a --illumos switch
|
# illumos code generation requires a --illumos switch
|
||||||
echo "$mksyscall -illumos -tags illumos,$GOARCH syscall_illumos.go |gofmt > zsyscall_illumos_$GOARCH.go";
|
echo "$mksyscall -illumos -tags illumos,$GOARCH syscall_illumos.go |gofmt > zsyscall_illumos_$GOARCH.go";
|
||||||
|
4
gateway/vendor/golang.org/x/sys/unix/mkerrors.sh
generated
vendored
4
gateway/vendor/golang.org/x/sys/unix/mkerrors.sh
generated
vendored
@ -642,7 +642,7 @@ errors=$(
|
|||||||
signals=$(
|
signals=$(
|
||||||
echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
|
echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
|
||||||
awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print $2 }' |
|
awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print $2 }' |
|
||||||
egrep -v '(SIGSTKSIZE|SIGSTKSZ|SIGRT|SIGMAX64)' |
|
grep -v 'SIGSTKSIZE\|SIGSTKSZ\|SIGRT\|SIGMAX64' |
|
||||||
sort
|
sort
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -652,7 +652,7 @@ echo '#include <errno.h>' | $CC -x c - -E -dM $ccflags |
|
|||||||
sort >_error.grep
|
sort >_error.grep
|
||||||
echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
|
echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
|
||||||
awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print "^\t" $2 "[ \t]*=" }' |
|
awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print "^\t" $2 "[ \t]*=" }' |
|
||||||
egrep -v '(SIGSTKSIZE|SIGSTKSZ|SIGRT|SIGMAX64)' |
|
grep -v 'SIGSTKSIZE\|SIGSTKSZ\|SIGRT\|SIGMAX64' |
|
||||||
sort >_signal.grep
|
sort >_signal.grep
|
||||||
|
|
||||||
echo '// mkerrors.sh' "$@"
|
echo '// mkerrors.sh' "$@"
|
||||||
|
14
gateway/vendor/golang.org/x/sys/unix/sockcmsg_unix.go
generated
vendored
14
gateway/vendor/golang.org/x/sys/unix/sockcmsg_unix.go
generated
vendored
@ -52,6 +52,20 @@ func ParseSocketControlMessage(b []byte) ([]SocketControlMessage, error) {
|
|||||||
return msgs, nil
|
return msgs, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ParseOneSocketControlMessage parses a single socket control message from b, returning the message header,
|
||||||
|
// message data (a slice of b), and the remainder of b after that single message.
|
||||||
|
// When there are no remaining messages, len(remainder) == 0.
|
||||||
|
func ParseOneSocketControlMessage(b []byte) (hdr Cmsghdr, data []byte, remainder []byte, err error) {
|
||||||
|
h, dbuf, err := socketControlMessageHeaderAndData(b)
|
||||||
|
if err != nil {
|
||||||
|
return Cmsghdr{}, nil, nil, err
|
||||||
|
}
|
||||||
|
if i := cmsgAlignOf(int(h.Len)); i < len(b) {
|
||||||
|
remainder = b[i:]
|
||||||
|
}
|
||||||
|
return *h, dbuf, remainder, nil
|
||||||
|
}
|
||||||
|
|
||||||
func socketControlMessageHeaderAndData(b []byte) (*Cmsghdr, []byte, error) {
|
func socketControlMessageHeaderAndData(b []byte) (*Cmsghdr, []byte, error) {
|
||||||
h := (*Cmsghdr)(unsafe.Pointer(&b[0]))
|
h := (*Cmsghdr)(unsafe.Pointer(&b[0]))
|
||||||
if h.Len < SizeofCmsghdr || uint64(h.Len) > uint64(len(b)) {
|
if h.Len < SizeofCmsghdr || uint64(h.Len) > uint64(len(b)) {
|
||||||
|
27
gateway/vendor/golang.org/x/sys/unix/str.go
generated
vendored
27
gateway/vendor/golang.org/x/sys/unix/str.go
generated
vendored
@ -1,27 +0,0 @@
|
|||||||
// Copyright 2009 The Go Authors. All rights reserved.
|
|
||||||
// Use of this source code is governed by a BSD-style
|
|
||||||
// license that can be found in the LICENSE file.
|
|
||||||
|
|
||||||
//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
|
|
||||||
// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
|
|
||||||
|
|
||||||
package unix
|
|
||||||
|
|
||||||
func itoa(val int) string { // do it here rather than with fmt to avoid dependency
|
|
||||||
if val < 0 {
|
|
||||||
return "-" + uitoa(uint(-val))
|
|
||||||
}
|
|
||||||
return uitoa(uint(val))
|
|
||||||
}
|
|
||||||
|
|
||||||
func uitoa(val uint) string {
|
|
||||||
var buf [32]byte // big enough for int64
|
|
||||||
i := len(buf) - 1
|
|
||||||
for val >= 10 {
|
|
||||||
buf[i] = byte(val%10 + '0')
|
|
||||||
i--
|
|
||||||
val /= 10
|
|
||||||
}
|
|
||||||
buf[i] = byte(val + '0')
|
|
||||||
return string(buf[i:])
|
|
||||||
}
|
|
10
gateway/vendor/golang.org/x/sys/unix/syscall.go
generated
vendored
10
gateway/vendor/golang.org/x/sys/unix/syscall.go
generated
vendored
@ -29,8 +29,6 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"strings"
|
"strings"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
||||||
"golang.org/x/sys/internal/unsafeheader"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// ByteSliceFromString returns a NUL-terminated slice of bytes
|
// ByteSliceFromString returns a NUL-terminated slice of bytes
|
||||||
@ -82,13 +80,7 @@ func BytePtrToString(p *byte) string {
|
|||||||
ptr = unsafe.Pointer(uintptr(ptr) + 1)
|
ptr = unsafe.Pointer(uintptr(ptr) + 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
var s []byte
|
return string(unsafe.Slice(p, n))
|
||||||
h := (*unsafeheader.Slice)(unsafe.Pointer(&s))
|
|
||||||
h.Data = unsafe.Pointer(p)
|
|
||||||
h.Len = n
|
|
||||||
h.Cap = n
|
|
||||||
|
|
||||||
return string(s)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Single-word zero for use when we need a valid pointer to 0 bytes.
|
// Single-word zero for use when we need a valid pointer to 0 bytes.
|
||||||
|
32
gateway/vendor/golang.org/x/sys/unix/syscall_darwin.1_12.go
generated
vendored
32
gateway/vendor/golang.org/x/sys/unix/syscall_darwin.1_12.go
generated
vendored
@ -1,32 +0,0 @@
|
|||||||
// Copyright 2019 The Go Authors. All rights reserved.
|
|
||||||
// Use of this source code is governed by a BSD-style
|
|
||||||
// license that can be found in the LICENSE file.
|
|
||||||
|
|
||||||
//go:build darwin && go1.12 && !go1.13
|
|
||||||
// +build darwin,go1.12,!go1.13
|
|
||||||
|
|
||||||
package unix
|
|
||||||
|
|
||||||
import (
|
|
||||||
"unsafe"
|
|
||||||
)
|
|
||||||
|
|
||||||
const _SYS_GETDIRENTRIES64 = 344
|
|
||||||
|
|
||||||
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
|
||||||
// To implement this using libSystem we'd need syscall_syscallPtr for
|
|
||||||
// fdopendir. However, syscallPtr was only added in Go 1.13, so we fall
|
|
||||||
// back to raw syscalls for this func on Go 1.12.
|
|
||||||
var p unsafe.Pointer
|
|
||||||
if len(buf) > 0 {
|
|
||||||
p = unsafe.Pointer(&buf[0])
|
|
||||||
} else {
|
|
||||||
p = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
r0, _, e1 := Syscall6(_SYS_GETDIRENTRIES64, uintptr(fd), uintptr(p), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0)
|
|
||||||
n = int(r0)
|
|
||||||
if e1 != 0 {
|
|
||||||
return n, errnoErr(e1)
|
|
||||||
}
|
|
||||||
return n, nil
|
|
||||||
}
|
|
108
gateway/vendor/golang.org/x/sys/unix/syscall_darwin.1_13.go
generated
vendored
108
gateway/vendor/golang.org/x/sys/unix/syscall_darwin.1_13.go
generated
vendored
@ -1,108 +0,0 @@
|
|||||||
// Copyright 2019 The Go Authors. All rights reserved.
|
|
||||||
// Use of this source code is governed by a BSD-style
|
|
||||||
// license that can be found in the LICENSE file.
|
|
||||||
|
|
||||||
//go:build darwin && go1.13
|
|
||||||
// +build darwin,go1.13
|
|
||||||
|
|
||||||
package unix
|
|
||||||
|
|
||||||
import (
|
|
||||||
"unsafe"
|
|
||||||
|
|
||||||
"golang.org/x/sys/internal/unsafeheader"
|
|
||||||
)
|
|
||||||
|
|
||||||
//sys closedir(dir uintptr) (err error)
|
|
||||||
//sys readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno)
|
|
||||||
|
|
||||||
func fdopendir(fd int) (dir uintptr, err error) {
|
|
||||||
r0, _, e1 := syscall_syscallPtr(libc_fdopendir_trampoline_addr, uintptr(fd), 0, 0)
|
|
||||||
dir = uintptr(r0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
var libc_fdopendir_trampoline_addr uintptr
|
|
||||||
|
|
||||||
//go:cgo_import_dynamic libc_fdopendir fdopendir "/usr/lib/libSystem.B.dylib"
|
|
||||||
|
|
||||||
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
|
||||||
// Simulate Getdirentries using fdopendir/readdir_r/closedir.
|
|
||||||
// We store the number of entries to skip in the seek
|
|
||||||
// offset of fd. See issue #31368.
|
|
||||||
// It's not the full required semantics, but should handle the case
|
|
||||||
// of calling Getdirentries or ReadDirent repeatedly.
|
|
||||||
// It won't handle assigning the results of lseek to *basep, or handle
|
|
||||||
// the directory being edited underfoot.
|
|
||||||
skip, err := Seek(fd, 0, 1 /* SEEK_CUR */)
|
|
||||||
if err != nil {
|
|
||||||
return 0, err
|
|
||||||
}
|
|
||||||
|
|
||||||
// We need to duplicate the incoming file descriptor
|
|
||||||
// because the caller expects to retain control of it, but
|
|
||||||
// fdopendir expects to take control of its argument.
|
|
||||||
// Just Dup'ing the file descriptor is not enough, as the
|
|
||||||
// result shares underlying state. Use Openat to make a really
|
|
||||||
// new file descriptor referring to the same directory.
|
|
||||||
fd2, err := Openat(fd, ".", O_RDONLY, 0)
|
|
||||||
if err != nil {
|
|
||||||
return 0, err
|
|
||||||
}
|
|
||||||
d, err := fdopendir(fd2)
|
|
||||||
if err != nil {
|
|
||||||
Close(fd2)
|
|
||||||
return 0, err
|
|
||||||
}
|
|
||||||
defer closedir(d)
|
|
||||||
|
|
||||||
var cnt int64
|
|
||||||
for {
|
|
||||||
var entry Dirent
|
|
||||||
var entryp *Dirent
|
|
||||||
e := readdir_r(d, &entry, &entryp)
|
|
||||||
if e != 0 {
|
|
||||||
return n, errnoErr(e)
|
|
||||||
}
|
|
||||||
if entryp == nil {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
if skip > 0 {
|
|
||||||
skip--
|
|
||||||
cnt++
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
reclen := int(entry.Reclen)
|
|
||||||
if reclen > len(buf) {
|
|
||||||
// Not enough room. Return for now.
|
|
||||||
// The counter will let us know where we should start up again.
|
|
||||||
// Note: this strategy for suspending in the middle and
|
|
||||||
// restarting is O(n^2) in the length of the directory. Oh well.
|
|
||||||
break
|
|
||||||
}
|
|
||||||
|
|
||||||
// Copy entry into return buffer.
|
|
||||||
var s []byte
|
|
||||||
hdr := (*unsafeheader.Slice)(unsafe.Pointer(&s))
|
|
||||||
hdr.Data = unsafe.Pointer(&entry)
|
|
||||||
hdr.Cap = reclen
|
|
||||||
hdr.Len = reclen
|
|
||||||
copy(buf, s)
|
|
||||||
|
|
||||||
buf = buf[reclen:]
|
|
||||||
n += reclen
|
|
||||||
cnt++
|
|
||||||
}
|
|
||||||
// Set the seek offset of the input fd to record
|
|
||||||
// how many files we've already returned.
|
|
||||||
_, err = Seek(fd, cnt, 0 /* SEEK_SET */)
|
|
||||||
if err != nil {
|
|
||||||
return n, err
|
|
||||||
}
|
|
||||||
|
|
||||||
return n, nil
|
|
||||||
}
|
|
90
gateway/vendor/golang.org/x/sys/unix/syscall_darwin.go
generated
vendored
90
gateway/vendor/golang.org/x/sys/unix/syscall_darwin.go
generated
vendored
@ -19,6 +19,96 @@ import (
|
|||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
//sys closedir(dir uintptr) (err error)
|
||||||
|
//sys readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno)
|
||||||
|
|
||||||
|
func fdopendir(fd int) (dir uintptr, err error) {
|
||||||
|
r0, _, e1 := syscall_syscallPtr(libc_fdopendir_trampoline_addr, uintptr(fd), 0, 0)
|
||||||
|
dir = uintptr(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
var libc_fdopendir_trampoline_addr uintptr
|
||||||
|
|
||||||
|
//go:cgo_import_dynamic libc_fdopendir fdopendir "/usr/lib/libSystem.B.dylib"
|
||||||
|
|
||||||
|
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||||
|
// Simulate Getdirentries using fdopendir/readdir_r/closedir.
|
||||||
|
// We store the number of entries to skip in the seek
|
||||||
|
// offset of fd. See issue #31368.
|
||||||
|
// It's not the full required semantics, but should handle the case
|
||||||
|
// of calling Getdirentries or ReadDirent repeatedly.
|
||||||
|
// It won't handle assigning the results of lseek to *basep, or handle
|
||||||
|
// the directory being edited underfoot.
|
||||||
|
skip, err := Seek(fd, 0, 1 /* SEEK_CUR */)
|
||||||
|
if err != nil {
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
|
||||||
|
// We need to duplicate the incoming file descriptor
|
||||||
|
// because the caller expects to retain control of it, but
|
||||||
|
// fdopendir expects to take control of its argument.
|
||||||
|
// Just Dup'ing the file descriptor is not enough, as the
|
||||||
|
// result shares underlying state. Use Openat to make a really
|
||||||
|
// new file descriptor referring to the same directory.
|
||||||
|
fd2, err := Openat(fd, ".", O_RDONLY, 0)
|
||||||
|
if err != nil {
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
d, err := fdopendir(fd2)
|
||||||
|
if err != nil {
|
||||||
|
Close(fd2)
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
defer closedir(d)
|
||||||
|
|
||||||
|
var cnt int64
|
||||||
|
for {
|
||||||
|
var entry Dirent
|
||||||
|
var entryp *Dirent
|
||||||
|
e := readdir_r(d, &entry, &entryp)
|
||||||
|
if e != 0 {
|
||||||
|
return n, errnoErr(e)
|
||||||
|
}
|
||||||
|
if entryp == nil {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
if skip > 0 {
|
||||||
|
skip--
|
||||||
|
cnt++
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
reclen := int(entry.Reclen)
|
||||||
|
if reclen > len(buf) {
|
||||||
|
// Not enough room. Return for now.
|
||||||
|
// The counter will let us know where we should start up again.
|
||||||
|
// Note: this strategy for suspending in the middle and
|
||||||
|
// restarting is O(n^2) in the length of the directory. Oh well.
|
||||||
|
break
|
||||||
|
}
|
||||||
|
|
||||||
|
// Copy entry into return buffer.
|
||||||
|
s := unsafe.Slice((*byte)(unsafe.Pointer(&entry)), reclen)
|
||||||
|
copy(buf, s)
|
||||||
|
|
||||||
|
buf = buf[reclen:]
|
||||||
|
n += reclen
|
||||||
|
cnt++
|
||||||
|
}
|
||||||
|
// Set the seek offset of the input fd to record
|
||||||
|
// how many files we've already returned.
|
||||||
|
_, err = Seek(fd, cnt, 0 /* SEEK_SET */)
|
||||||
|
if err != nil {
|
||||||
|
return n, err
|
||||||
|
}
|
||||||
|
|
||||||
|
return n, nil
|
||||||
|
}
|
||||||
|
|
||||||
// SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets.
|
// SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets.
|
||||||
type SockaddrDatalink struct {
|
type SockaddrDatalink struct {
|
||||||
Len uint8
|
Len uint8
|
||||||
|
1
gateway/vendor/golang.org/x/sys/unix/syscall_dragonfly.go
generated
vendored
1
gateway/vendor/golang.org/x/sys/unix/syscall_dragonfly.go
generated
vendored
@ -255,6 +255,7 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
|||||||
//sys Chmod(path string, mode uint32) (err error)
|
//sys Chmod(path string, mode uint32) (err error)
|
||||||
//sys Chown(path string, uid int, gid int) (err error)
|
//sys Chown(path string, uid int, gid int) (err error)
|
||||||
//sys Chroot(path string) (err error)
|
//sys Chroot(path string) (err error)
|
||||||
|
//sys ClockGettime(clockid int32, time *Timespec) (err error)
|
||||||
//sys Close(fd int) (err error)
|
//sys Close(fd int) (err error)
|
||||||
//sys Dup(fd int) (nfd int, err error)
|
//sys Dup(fd int) (nfd int, err error)
|
||||||
//sys Dup2(from int, to int) (err error)
|
//sys Dup2(from int, to int) (err error)
|
||||||
|
1
gateway/vendor/golang.org/x/sys/unix/syscall_freebsd.go
generated
vendored
1
gateway/vendor/golang.org/x/sys/unix/syscall_freebsd.go
generated
vendored
@ -319,6 +319,7 @@ func PtraceSingleStep(pid int) (err error) {
|
|||||||
//sys Chmod(path string, mode uint32) (err error)
|
//sys Chmod(path string, mode uint32) (err error)
|
||||||
//sys Chown(path string, uid int, gid int) (err error)
|
//sys Chown(path string, uid int, gid int) (err error)
|
||||||
//sys Chroot(path string) (err error)
|
//sys Chroot(path string) (err error)
|
||||||
|
//sys ClockGettime(clockid int32, time *Timespec) (err error)
|
||||||
//sys Close(fd int) (err error)
|
//sys Close(fd int) (err error)
|
||||||
//sys Dup(fd int) (nfd int, err error)
|
//sys Dup(fd int) (nfd int, err error)
|
||||||
//sys Dup2(from int, to int) (err error)
|
//sys Dup2(from int, to int) (err error)
|
||||||
|
2
gateway/vendor/golang.org/x/sys/unix/syscall_freebsd_386.go
generated
vendored
2
gateway/vendor/golang.org/x/sys/unix/syscall_freebsd_386.go
generated
vendored
@ -61,7 +61,7 @@ func PtraceGetFsBase(pid int, fsbase *int64) (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
|
func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
|
||||||
ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint32(countin)}
|
ioDesc := PtraceIoDesc{Op: int32(req), Offs: uintptr(unsafe.Pointer(addr)), Addr: uintptr(unsafe.Pointer(&out[0])), Len: uint32(countin)}
|
||||||
err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
|
err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
|
||||||
return int(ioDesc.Len), err
|
return int(ioDesc.Len), err
|
||||||
}
|
}
|
||||||
|
2
gateway/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go
generated
vendored
2
gateway/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go
generated
vendored
@ -61,7 +61,7 @@ func PtraceGetFsBase(pid int, fsbase *int64) (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
|
func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
|
||||||
ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint64(countin)}
|
ioDesc := PtraceIoDesc{Op: int32(req), Offs: uintptr(unsafe.Pointer(addr)), Addr: uintptr(unsafe.Pointer(&out[0])), Len: uint64(countin)}
|
||||||
err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
|
err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
|
||||||
return int(ioDesc.Len), err
|
return int(ioDesc.Len), err
|
||||||
}
|
}
|
||||||
|
2
gateway/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go
generated
vendored
2
gateway/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go
generated
vendored
@ -57,7 +57,7 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
|||||||
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
||||||
|
|
||||||
func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
|
func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
|
||||||
ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint32(countin)}
|
ioDesc := PtraceIoDesc{Op: int32(req), Offs: uintptr(unsafe.Pointer(addr)), Addr: uintptr(unsafe.Pointer(&out[0])), Len: uint32(countin)}
|
||||||
err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
|
err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
|
||||||
return int(ioDesc.Len), err
|
return int(ioDesc.Len), err
|
||||||
}
|
}
|
||||||
|
2
gateway/vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go
generated
vendored
2
gateway/vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go
generated
vendored
@ -57,7 +57,7 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
|||||||
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
||||||
|
|
||||||
func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
|
func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
|
||||||
ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint64(countin)}
|
ioDesc := PtraceIoDesc{Op: int32(req), Offs: uintptr(unsafe.Pointer(addr)), Addr: uintptr(unsafe.Pointer(&out[0])), Len: uint64(countin)}
|
||||||
err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
|
err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
|
||||||
return int(ioDesc.Len), err
|
return int(ioDesc.Len), err
|
||||||
}
|
}
|
||||||
|
2
gateway/vendor/golang.org/x/sys/unix/syscall_freebsd_riscv64.go
generated
vendored
2
gateway/vendor/golang.org/x/sys/unix/syscall_freebsd_riscv64.go
generated
vendored
@ -57,7 +57,7 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
|||||||
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno)
|
||||||
|
|
||||||
func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
|
func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) {
|
||||||
ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint64(countin)}
|
ioDesc := PtraceIoDesc{Op: int32(req), Offs: uintptr(unsafe.Pointer(addr)), Addr: uintptr(unsafe.Pointer(&out[0])), Len: uint64(countin)}
|
||||||
err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
|
err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
|
||||||
return int(ioDesc.Len), err
|
return int(ioDesc.Len), err
|
||||||
}
|
}
|
||||||
|
22
gateway/vendor/golang.org/x/sys/unix/syscall_hurd.go
generated
vendored
Normal file
22
gateway/vendor/golang.org/x/sys/unix/syscall_hurd.go
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
// Copyright 2022 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build hurd
|
||||||
|
// +build hurd
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
/*
|
||||||
|
#include <stdint.h>
|
||||||
|
int ioctl(int, unsigned long int, uintptr_t);
|
||||||
|
*/
|
||||||
|
import "C"
|
||||||
|
|
||||||
|
func ioctl(fd int, req uint, arg uintptr) (err error) {
|
||||||
|
r0, er := C.ioctl(C.int(fd), C.ulong(req), C.uintptr_t(arg))
|
||||||
|
if r0 == -1 && er != nil {
|
||||||
|
err = er
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
29
gateway/vendor/golang.org/x/sys/unix/syscall_hurd_386.go
generated
vendored
Normal file
29
gateway/vendor/golang.org/x/sys/unix/syscall_hurd_386.go
generated
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
// Copyright 2022 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build 386 && hurd
|
||||||
|
// +build 386,hurd
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
const (
|
||||||
|
TIOCGETA = 0x62251713
|
||||||
|
)
|
||||||
|
|
||||||
|
type Winsize struct {
|
||||||
|
Row uint16
|
||||||
|
Col uint16
|
||||||
|
Xpixel uint16
|
||||||
|
Ypixel uint16
|
||||||
|
}
|
||||||
|
|
||||||
|
type Termios struct {
|
||||||
|
Iflag uint32
|
||||||
|
Oflag uint32
|
||||||
|
Cflag uint32
|
||||||
|
Lflag uint32
|
||||||
|
Cc [20]uint8
|
||||||
|
Ispeed int32
|
||||||
|
Ospeed int32
|
||||||
|
}
|
106
gateway/vendor/golang.org/x/sys/unix/syscall_illumos.go
generated
vendored
106
gateway/vendor/golang.org/x/sys/unix/syscall_illumos.go
generated
vendored
@ -10,8 +10,6 @@
|
|||||||
package unix
|
package unix
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"runtime"
|
|
||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -79,107 +77,3 @@ func Accept4(fd int, flags int) (nfd int, sa Sockaddr, err error) {
|
|||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
//sys putmsg(fd int, clptr *strbuf, dataptr *strbuf, flags int) (err error)
|
|
||||||
|
|
||||||
func Putmsg(fd int, cl []byte, data []byte, flags int) (err error) {
|
|
||||||
var clp, datap *strbuf
|
|
||||||
if len(cl) > 0 {
|
|
||||||
clp = &strbuf{
|
|
||||||
Len: int32(len(cl)),
|
|
||||||
Buf: (*int8)(unsafe.Pointer(&cl[0])),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if len(data) > 0 {
|
|
||||||
datap = &strbuf{
|
|
||||||
Len: int32(len(data)),
|
|
||||||
Buf: (*int8)(unsafe.Pointer(&data[0])),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return putmsg(fd, clp, datap, flags)
|
|
||||||
}
|
|
||||||
|
|
||||||
//sys getmsg(fd int, clptr *strbuf, dataptr *strbuf, flags *int) (err error)
|
|
||||||
|
|
||||||
func Getmsg(fd int, cl []byte, data []byte) (retCl []byte, retData []byte, flags int, err error) {
|
|
||||||
var clp, datap *strbuf
|
|
||||||
if len(cl) > 0 {
|
|
||||||
clp = &strbuf{
|
|
||||||
Maxlen: int32(len(cl)),
|
|
||||||
Buf: (*int8)(unsafe.Pointer(&cl[0])),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if len(data) > 0 {
|
|
||||||
datap = &strbuf{
|
|
||||||
Maxlen: int32(len(data)),
|
|
||||||
Buf: (*int8)(unsafe.Pointer(&data[0])),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if err = getmsg(fd, clp, datap, &flags); err != nil {
|
|
||||||
return nil, nil, 0, err
|
|
||||||
}
|
|
||||||
|
|
||||||
if len(cl) > 0 {
|
|
||||||
retCl = cl[:clp.Len]
|
|
||||||
}
|
|
||||||
if len(data) > 0 {
|
|
||||||
retData = data[:datap.Len]
|
|
||||||
}
|
|
||||||
return retCl, retData, flags, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func IoctlSetIntRetInt(fd int, req uint, arg int) (int, error) {
|
|
||||||
return ioctlRet(fd, req, uintptr(arg))
|
|
||||||
}
|
|
||||||
|
|
||||||
func IoctlSetString(fd int, req uint, val string) error {
|
|
||||||
bs := make([]byte, len(val)+1)
|
|
||||||
copy(bs[:len(bs)-1], val)
|
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&bs[0])))
|
|
||||||
runtime.KeepAlive(&bs[0])
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
// Lifreq Helpers
|
|
||||||
|
|
||||||
func (l *Lifreq) SetName(name string) error {
|
|
||||||
if len(name) >= len(l.Name) {
|
|
||||||
return fmt.Errorf("name cannot be more than %d characters", len(l.Name)-1)
|
|
||||||
}
|
|
||||||
for i := range name {
|
|
||||||
l.Name[i] = int8(name[i])
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (l *Lifreq) SetLifruInt(d int) {
|
|
||||||
*(*int)(unsafe.Pointer(&l.Lifru[0])) = d
|
|
||||||
}
|
|
||||||
|
|
||||||
func (l *Lifreq) GetLifruInt() int {
|
|
||||||
return *(*int)(unsafe.Pointer(&l.Lifru[0]))
|
|
||||||
}
|
|
||||||
|
|
||||||
func (l *Lifreq) SetLifruUint(d uint) {
|
|
||||||
*(*uint)(unsafe.Pointer(&l.Lifru[0])) = d
|
|
||||||
}
|
|
||||||
|
|
||||||
func (l *Lifreq) GetLifruUint() uint {
|
|
||||||
return *(*uint)(unsafe.Pointer(&l.Lifru[0]))
|
|
||||||
}
|
|
||||||
|
|
||||||
func IoctlLifreq(fd int, req uint, l *Lifreq) error {
|
|
||||||
return ioctl(fd, req, uintptr(unsafe.Pointer(l)))
|
|
||||||
}
|
|
||||||
|
|
||||||
// Strioctl Helpers
|
|
||||||
|
|
||||||
func (s *Strioctl) SetInt(i int) {
|
|
||||||
s.Len = int32(unsafe.Sizeof(i))
|
|
||||||
s.Dp = (*int8)(unsafe.Pointer(&i))
|
|
||||||
}
|
|
||||||
|
|
||||||
func IoctlSetStrioctlRetInt(fd int, req uint, s *Strioctl) (int, error) {
|
|
||||||
return ioctlRet(fd, req, uintptr(unsafe.Pointer(s)))
|
|
||||||
}
|
|
||||||
|
94
gateway/vendor/golang.org/x/sys/unix/syscall_linux.go
generated
vendored
94
gateway/vendor/golang.org/x/sys/unix/syscall_linux.go
generated
vendored
@ -13,6 +13,7 @@ package unix
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
|
"strconv"
|
||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
@ -233,7 +234,7 @@ func Futimesat(dirfd int, path string, tv []Timeval) error {
|
|||||||
func Futimes(fd int, tv []Timeval) (err error) {
|
func Futimes(fd int, tv []Timeval) (err error) {
|
||||||
// Believe it or not, this is the best we can do on Linux
|
// Believe it or not, this is the best we can do on Linux
|
||||||
// (and is what glibc does).
|
// (and is what glibc does).
|
||||||
return Utimes("/proc/self/fd/"+itoa(fd), tv)
|
return Utimes("/proc/self/fd/"+strconv.Itoa(fd), tv)
|
||||||
}
|
}
|
||||||
|
|
||||||
const ImplementsGetwd = true
|
const ImplementsGetwd = true
|
||||||
@ -1553,6 +1554,7 @@ func sendmsgN(fd int, iov []Iovec, oob []byte, ptr unsafe.Pointer, salen _Sockle
|
|||||||
var iova [1]Iovec
|
var iova [1]Iovec
|
||||||
iova[0].Base = &dummy
|
iova[0].Base = &dummy
|
||||||
iova[0].SetLen(1)
|
iova[0].SetLen(1)
|
||||||
|
iov = iova[:]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
msg.Control = &oob[0]
|
msg.Control = &oob[0]
|
||||||
@ -1891,17 +1893,28 @@ func PrctlRetInt(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uint
|
|||||||
return int(ret), nil
|
return int(ret), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// issue 1435.
|
|
||||||
// On linux Setuid and Setgid only affects the current thread, not the process.
|
|
||||||
// This does not match what most callers expect so we must return an error
|
|
||||||
// here rather than letting the caller think that the call succeeded.
|
|
||||||
|
|
||||||
func Setuid(uid int) (err error) {
|
func Setuid(uid int) (err error) {
|
||||||
return EOPNOTSUPP
|
return syscall.Setuid(uid)
|
||||||
}
|
}
|
||||||
|
|
||||||
func Setgid(uid int) (err error) {
|
func Setgid(gid int) (err error) {
|
||||||
return EOPNOTSUPP
|
return syscall.Setgid(gid)
|
||||||
|
}
|
||||||
|
|
||||||
|
func Setreuid(ruid, euid int) (err error) {
|
||||||
|
return syscall.Setreuid(ruid, euid)
|
||||||
|
}
|
||||||
|
|
||||||
|
func Setregid(rgid, egid int) (err error) {
|
||||||
|
return syscall.Setregid(rgid, egid)
|
||||||
|
}
|
||||||
|
|
||||||
|
func Setresuid(ruid, euid, suid int) (err error) {
|
||||||
|
return syscall.Setresuid(ruid, euid, suid)
|
||||||
|
}
|
||||||
|
|
||||||
|
func Setresgid(rgid, egid, sgid int) (err error) {
|
||||||
|
return syscall.Setresgid(rgid, egid, sgid)
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetfsgidRetGid sets fsgid for current thread and returns previous fsgid set.
|
// SetfsgidRetGid sets fsgid for current thread and returns previous fsgid set.
|
||||||
@ -1960,36 +1973,46 @@ func Signalfd(fd int, sigmask *Sigset_t, flags int) (newfd int, err error) {
|
|||||||
//sys preadv2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) = SYS_PREADV2
|
//sys preadv2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) = SYS_PREADV2
|
||||||
//sys pwritev2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) = SYS_PWRITEV2
|
//sys pwritev2(fd int, iovs []Iovec, offs_l uintptr, offs_h uintptr, flags int) (n int, err error) = SYS_PWRITEV2
|
||||||
|
|
||||||
func bytes2iovec(bs [][]byte) []Iovec {
|
// minIovec is the size of the small initial allocation used by
|
||||||
iovecs := make([]Iovec, len(bs))
|
// Readv, Writev, etc.
|
||||||
for i, b := range bs {
|
//
|
||||||
iovecs[i].SetLen(len(b))
|
// This small allocation gets stack allocated, which lets the
|
||||||
|
// common use case of len(iovs) <= minIovs avoid more expensive
|
||||||
|
// heap allocations.
|
||||||
|
const minIovec = 8
|
||||||
|
|
||||||
|
// appendBytes converts bs to Iovecs and appends them to vecs.
|
||||||
|
func appendBytes(vecs []Iovec, bs [][]byte) []Iovec {
|
||||||
|
for _, b := range bs {
|
||||||
|
var v Iovec
|
||||||
|
v.SetLen(len(b))
|
||||||
if len(b) > 0 {
|
if len(b) > 0 {
|
||||||
iovecs[i].Base = &b[0]
|
v.Base = &b[0]
|
||||||
} else {
|
} else {
|
||||||
iovecs[i].Base = (*byte)(unsafe.Pointer(&_zero))
|
v.Base = (*byte)(unsafe.Pointer(&_zero))
|
||||||
}
|
}
|
||||||
|
vecs = append(vecs, v)
|
||||||
}
|
}
|
||||||
return iovecs
|
return vecs
|
||||||
}
|
}
|
||||||
|
|
||||||
// offs2lohi splits offs into its lower and upper unsigned long. On 64-bit
|
// offs2lohi splits offs into its low and high order bits.
|
||||||
// systems, hi will always be 0. On 32-bit systems, offs will be split in half.
|
|
||||||
// preadv/pwritev chose this calling convention so they don't need to add a
|
|
||||||
// padding-register for alignment on ARM.
|
|
||||||
func offs2lohi(offs int64) (lo, hi uintptr) {
|
func offs2lohi(offs int64) (lo, hi uintptr) {
|
||||||
return uintptr(offs), uintptr(uint64(offs) >> SizeofLong)
|
const longBits = SizeofLong * 8
|
||||||
|
return uintptr(offs), uintptr(uint64(offs) >> longBits)
|
||||||
}
|
}
|
||||||
|
|
||||||
func Readv(fd int, iovs [][]byte) (n int, err error) {
|
func Readv(fd int, iovs [][]byte) (n int, err error) {
|
||||||
iovecs := bytes2iovec(iovs)
|
iovecs := make([]Iovec, 0, minIovec)
|
||||||
|
iovecs = appendBytes(iovecs, iovs)
|
||||||
n, err = readv(fd, iovecs)
|
n, err = readv(fd, iovecs)
|
||||||
readvRacedetect(iovecs, n, err)
|
readvRacedetect(iovecs, n, err)
|
||||||
return n, err
|
return n, err
|
||||||
}
|
}
|
||||||
|
|
||||||
func Preadv(fd int, iovs [][]byte, offset int64) (n int, err error) {
|
func Preadv(fd int, iovs [][]byte, offset int64) (n int, err error) {
|
||||||
iovecs := bytes2iovec(iovs)
|
iovecs := make([]Iovec, 0, minIovec)
|
||||||
|
iovecs = appendBytes(iovecs, iovs)
|
||||||
lo, hi := offs2lohi(offset)
|
lo, hi := offs2lohi(offset)
|
||||||
n, err = preadv(fd, iovecs, lo, hi)
|
n, err = preadv(fd, iovecs, lo, hi)
|
||||||
readvRacedetect(iovecs, n, err)
|
readvRacedetect(iovecs, n, err)
|
||||||
@ -1997,7 +2020,8 @@ func Preadv(fd int, iovs [][]byte, offset int64) (n int, err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Preadv2(fd int, iovs [][]byte, offset int64, flags int) (n int, err error) {
|
func Preadv2(fd int, iovs [][]byte, offset int64, flags int) (n int, err error) {
|
||||||
iovecs := bytes2iovec(iovs)
|
iovecs := make([]Iovec, 0, minIovec)
|
||||||
|
iovecs = appendBytes(iovecs, iovs)
|
||||||
lo, hi := offs2lohi(offset)
|
lo, hi := offs2lohi(offset)
|
||||||
n, err = preadv2(fd, iovecs, lo, hi, flags)
|
n, err = preadv2(fd, iovecs, lo, hi, flags)
|
||||||
readvRacedetect(iovecs, n, err)
|
readvRacedetect(iovecs, n, err)
|
||||||
@ -2024,7 +2048,8 @@ func readvRacedetect(iovecs []Iovec, n int, err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Writev(fd int, iovs [][]byte) (n int, err error) {
|
func Writev(fd int, iovs [][]byte) (n int, err error) {
|
||||||
iovecs := bytes2iovec(iovs)
|
iovecs := make([]Iovec, 0, minIovec)
|
||||||
|
iovecs = appendBytes(iovecs, iovs)
|
||||||
if raceenabled {
|
if raceenabled {
|
||||||
raceReleaseMerge(unsafe.Pointer(&ioSync))
|
raceReleaseMerge(unsafe.Pointer(&ioSync))
|
||||||
}
|
}
|
||||||
@ -2034,7 +2059,8 @@ func Writev(fd int, iovs [][]byte) (n int, err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Pwritev(fd int, iovs [][]byte, offset int64) (n int, err error) {
|
func Pwritev(fd int, iovs [][]byte, offset int64) (n int, err error) {
|
||||||
iovecs := bytes2iovec(iovs)
|
iovecs := make([]Iovec, 0, minIovec)
|
||||||
|
iovecs = appendBytes(iovecs, iovs)
|
||||||
if raceenabled {
|
if raceenabled {
|
||||||
raceReleaseMerge(unsafe.Pointer(&ioSync))
|
raceReleaseMerge(unsafe.Pointer(&ioSync))
|
||||||
}
|
}
|
||||||
@ -2045,7 +2071,8 @@ func Pwritev(fd int, iovs [][]byte, offset int64) (n int, err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Pwritev2(fd int, iovs [][]byte, offset int64, flags int) (n int, err error) {
|
func Pwritev2(fd int, iovs [][]byte, offset int64, flags int) (n int, err error) {
|
||||||
iovecs := bytes2iovec(iovs)
|
iovecs := make([]Iovec, 0, minIovec)
|
||||||
|
iovecs = appendBytes(iovecs, iovs)
|
||||||
if raceenabled {
|
if raceenabled {
|
||||||
raceReleaseMerge(unsafe.Pointer(&ioSync))
|
raceReleaseMerge(unsafe.Pointer(&ioSync))
|
||||||
}
|
}
|
||||||
@ -2240,7 +2267,7 @@ func (fh *FileHandle) Bytes() []byte {
|
|||||||
if n == 0 {
|
if n == 0 {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
return (*[1 << 30]byte)(unsafe.Pointer(uintptr(unsafe.Pointer(&fh.fileHandle.Type)) + 4))[:n:n]
|
return unsafe.Slice((*byte)(unsafe.Pointer(uintptr(unsafe.Pointer(&fh.fileHandle.Type))+4)), n)
|
||||||
}
|
}
|
||||||
|
|
||||||
// NameToHandleAt wraps the name_to_handle_at system call; it obtains
|
// NameToHandleAt wraps the name_to_handle_at system call; it obtains
|
||||||
@ -2356,6 +2383,16 @@ func Setitimer(which ItimerWhich, it Itimerval) (Itimerval, error) {
|
|||||||
return prev, nil
|
return prev, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//sysnb rtSigprocmask(how int, set *Sigset_t, oldset *Sigset_t, sigsetsize uintptr) (err error) = SYS_RT_SIGPROCMASK
|
||||||
|
|
||||||
|
func PthreadSigmask(how int, set, oldset *Sigset_t) error {
|
||||||
|
if oldset != nil {
|
||||||
|
// Explicitly clear in case Sigset_t is larger than _C__NSIG.
|
||||||
|
*oldset = Sigset_t{}
|
||||||
|
}
|
||||||
|
return rtSigprocmask(how, set, oldset, _C__NSIG/8)
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Unimplemented
|
* Unimplemented
|
||||||
*/
|
*/
|
||||||
@ -2414,7 +2451,6 @@ func Setitimer(which ItimerWhich, it Itimerval) (Itimerval, error) {
|
|||||||
// RestartSyscall
|
// RestartSyscall
|
||||||
// RtSigaction
|
// RtSigaction
|
||||||
// RtSigpending
|
// RtSigpending
|
||||||
// RtSigprocmask
|
|
||||||
// RtSigqueueinfo
|
// RtSigqueueinfo
|
||||||
// RtSigreturn
|
// RtSigreturn
|
||||||
// RtSigsuspend
|
// RtSigsuspend
|
||||||
|
4
gateway/vendor/golang.org/x/sys/unix/syscall_linux_386.go
generated
vendored
4
gateway/vendor/golang.org/x/sys/unix/syscall_linux_386.go
generated
vendored
@ -41,10 +41,6 @@ func setTimeval(sec, usec int64) Timeval {
|
|||||||
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
|
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
|
||||||
//sys setfsgid(gid int) (prev int, err error) = SYS_SETFSGID32
|
//sys setfsgid(gid int) (prev int, err error) = SYS_SETFSGID32
|
||||||
//sys setfsuid(uid int) (prev int, err error) = SYS_SETFSUID32
|
//sys setfsuid(uid int) (prev int, err error) = SYS_SETFSUID32
|
||||||
//sysnb Setregid(rgid int, egid int) (err error) = SYS_SETREGID32
|
|
||||||
//sysnb Setresgid(rgid int, egid int, sgid int) (err error) = SYS_SETRESGID32
|
|
||||||
//sysnb Setresuid(ruid int, euid int, suid int) (err error) = SYS_SETRESUID32
|
|
||||||
//sysnb Setreuid(ruid int, euid int) (err error) = SYS_SETREUID32
|
|
||||||
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
|
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
|
||||||
//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
|
//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
|
||||||
//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error)
|
//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error)
|
||||||
|
4
gateway/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go
generated
vendored
4
gateway/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go
generated
vendored
@ -46,11 +46,7 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
|
|||||||
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
|
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
|
||||||
//sys setfsgid(gid int) (prev int, err error)
|
//sys setfsgid(gid int) (prev int, err error)
|
||||||
//sys setfsuid(uid int) (prev int, err error)
|
//sys setfsuid(uid int) (prev int, err error)
|
||||||
//sysnb Setregid(rgid int, egid int) (err error)
|
|
||||||
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
|
|
||||||
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
|
|
||||||
//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
|
//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
|
||||||
//sysnb Setreuid(ruid int, euid int) (err error)
|
|
||||||
//sys Shutdown(fd int, how int) (err error)
|
//sys Shutdown(fd int, how int) (err error)
|
||||||
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
|
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
|
||||||
|
|
||||||
|
4
gateway/vendor/golang.org/x/sys/unix/syscall_linux_arm.go
generated
vendored
4
gateway/vendor/golang.org/x/sys/unix/syscall_linux_arm.go
generated
vendored
@ -62,10 +62,6 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
|
|||||||
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT
|
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT
|
||||||
//sys setfsgid(gid int) (prev int, err error) = SYS_SETFSGID32
|
//sys setfsgid(gid int) (prev int, err error) = SYS_SETFSGID32
|
||||||
//sys setfsuid(uid int) (prev int, err error) = SYS_SETFSUID32
|
//sys setfsuid(uid int) (prev int, err error) = SYS_SETFSUID32
|
||||||
//sysnb Setregid(rgid int, egid int) (err error) = SYS_SETREGID32
|
|
||||||
//sysnb Setresgid(rgid int, egid int, sgid int) (err error) = SYS_SETRESGID32
|
|
||||||
//sysnb Setresuid(ruid int, euid int, suid int) (err error) = SYS_SETRESUID32
|
|
||||||
//sysnb Setreuid(ruid int, euid int) (err error) = SYS_SETREUID32
|
|
||||||
//sys Shutdown(fd int, how int) (err error)
|
//sys Shutdown(fd int, how int) (err error)
|
||||||
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
|
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
|
||||||
//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
|
//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
|
||||||
|
4
gateway/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go
generated
vendored
4
gateway/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go
generated
vendored
@ -39,11 +39,7 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
|
|||||||
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
|
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
|
||||||
//sys setfsgid(gid int) (prev int, err error)
|
//sys setfsgid(gid int) (prev int, err error)
|
||||||
//sys setfsuid(uid int) (prev int, err error)
|
//sys setfsuid(uid int) (prev int, err error)
|
||||||
//sysnb Setregid(rgid int, egid int) (err error)
|
|
||||||
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
|
|
||||||
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
|
|
||||||
//sysnb setrlimit(resource int, rlim *Rlimit) (err error)
|
//sysnb setrlimit(resource int, rlim *Rlimit) (err error)
|
||||||
//sysnb Setreuid(ruid int, euid int) (err error)
|
|
||||||
//sys Shutdown(fd int, how int) (err error)
|
//sys Shutdown(fd int, how int) (err error)
|
||||||
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
|
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
|
||||||
|
|
||||||
|
4
gateway/vendor/golang.org/x/sys/unix/syscall_linux_loong64.go
generated
vendored
4
gateway/vendor/golang.org/x/sys/unix/syscall_linux_loong64.go
generated
vendored
@ -34,10 +34,6 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
|
|||||||
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
|
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
|
||||||
//sys setfsgid(gid int) (prev int, err error)
|
//sys setfsgid(gid int) (prev int, err error)
|
||||||
//sys setfsuid(uid int) (prev int, err error)
|
//sys setfsuid(uid int) (prev int, err error)
|
||||||
//sysnb Setregid(rgid int, egid int) (err error)
|
|
||||||
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
|
|
||||||
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
|
|
||||||
//sysnb Setreuid(ruid int, euid int) (err error)
|
|
||||||
//sys Shutdown(fd int, how int) (err error)
|
//sys Shutdown(fd int, how int) (err error)
|
||||||
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
|
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
|
||||||
|
|
||||||
|
4
gateway/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go
generated
vendored
4
gateway/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go
generated
vendored
@ -37,11 +37,7 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
|
|||||||
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
|
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
|
||||||
//sys setfsgid(gid int) (prev int, err error)
|
//sys setfsgid(gid int) (prev int, err error)
|
||||||
//sys setfsuid(uid int) (prev int, err error)
|
//sys setfsuid(uid int) (prev int, err error)
|
||||||
//sysnb Setregid(rgid int, egid int) (err error)
|
|
||||||
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
|
|
||||||
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
|
|
||||||
//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
|
//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
|
||||||
//sysnb Setreuid(ruid int, euid int) (err error)
|
|
||||||
//sys Shutdown(fd int, how int) (err error)
|
//sys Shutdown(fd int, how int) (err error)
|
||||||
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
|
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
|
||||||
//sys Statfs(path string, buf *Statfs_t) (err error)
|
//sys Statfs(path string, buf *Statfs_t) (err error)
|
||||||
|
4
gateway/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go
generated
vendored
4
gateway/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go
generated
vendored
@ -32,10 +32,6 @@ func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr,
|
|||||||
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
|
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
|
||||||
//sys setfsgid(gid int) (prev int, err error)
|
//sys setfsgid(gid int) (prev int, err error)
|
||||||
//sys setfsuid(uid int) (prev int, err error)
|
//sys setfsuid(uid int) (prev int, err error)
|
||||||
//sysnb Setregid(rgid int, egid int) (err error)
|
|
||||||
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
|
|
||||||
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
|
|
||||||
//sysnb Setreuid(ruid int, euid int) (err error)
|
|
||||||
//sys Shutdown(fd int, how int) (err error)
|
//sys Shutdown(fd int, how int) (err error)
|
||||||
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
|
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
|
||||||
//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error)
|
//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error)
|
||||||
|
4
gateway/vendor/golang.org/x/sys/unix/syscall_linux_ppc.go
generated
vendored
4
gateway/vendor/golang.org/x/sys/unix/syscall_linux_ppc.go
generated
vendored
@ -34,10 +34,6 @@ import (
|
|||||||
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
|
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
|
||||||
//sys setfsgid(gid int) (prev int, err error)
|
//sys setfsgid(gid int) (prev int, err error)
|
||||||
//sys setfsuid(uid int) (prev int, err error)
|
//sys setfsuid(uid int) (prev int, err error)
|
||||||
//sysnb Setregid(rgid int, egid int) (err error)
|
|
||||||
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
|
|
||||||
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
|
|
||||||
//sysnb Setreuid(ruid int, euid int) (err error)
|
|
||||||
//sys Shutdown(fd int, how int) (err error)
|
//sys Shutdown(fd int, how int) (err error)
|
||||||
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
|
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
|
||||||
//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
|
//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
|
||||||
|
4
gateway/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go
generated
vendored
4
gateway/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go
generated
vendored
@ -34,11 +34,7 @@ package unix
|
|||||||
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
|
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
|
||||||
//sys setfsgid(gid int) (prev int, err error)
|
//sys setfsgid(gid int) (prev int, err error)
|
||||||
//sys setfsuid(uid int) (prev int, err error)
|
//sys setfsuid(uid int) (prev int, err error)
|
||||||
//sysnb Setregid(rgid int, egid int) (err error)
|
|
||||||
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
|
|
||||||
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
|
|
||||||
//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
|
//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
|
||||||
//sysnb Setreuid(ruid int, euid int) (err error)
|
|
||||||
//sys Shutdown(fd int, how int) (err error)
|
//sys Shutdown(fd int, how int) (err error)
|
||||||
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
|
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
|
||||||
//sys Stat(path string, stat *Stat_t) (err error)
|
//sys Stat(path string, stat *Stat_t) (err error)
|
||||||
|
4
gateway/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go
generated
vendored
4
gateway/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go
generated
vendored
@ -38,11 +38,7 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
|
|||||||
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
|
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
|
||||||
//sys setfsgid(gid int) (prev int, err error)
|
//sys setfsgid(gid int) (prev int, err error)
|
||||||
//sys setfsuid(uid int) (prev int, err error)
|
//sys setfsuid(uid int) (prev int, err error)
|
||||||
//sysnb Setregid(rgid int, egid int) (err error)
|
|
||||||
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
|
|
||||||
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
|
|
||||||
//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
|
//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
|
||||||
//sysnb Setreuid(ruid int, euid int) (err error)
|
|
||||||
//sys Shutdown(fd int, how int) (err error)
|
//sys Shutdown(fd int, how int) (err error)
|
||||||
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
|
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
|
||||||
|
|
||||||
|
4
gateway/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go
generated
vendored
4
gateway/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go
generated
vendored
@ -34,11 +34,7 @@ import (
|
|||||||
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
|
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
|
||||||
//sys setfsgid(gid int) (prev int, err error)
|
//sys setfsgid(gid int) (prev int, err error)
|
||||||
//sys setfsuid(uid int) (prev int, err error)
|
//sys setfsuid(uid int) (prev int, err error)
|
||||||
//sysnb Setregid(rgid int, egid int) (err error)
|
|
||||||
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
|
|
||||||
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
|
|
||||||
//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
|
//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
|
||||||
//sysnb Setreuid(ruid int, euid int) (err error)
|
|
||||||
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
|
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
|
||||||
//sys Stat(path string, stat *Stat_t) (err error)
|
//sys Stat(path string, stat *Stat_t) (err error)
|
||||||
//sys Statfs(path string, buf *Statfs_t) (err error)
|
//sys Statfs(path string, buf *Statfs_t) (err error)
|
||||||
|
4
gateway/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go
generated
vendored
4
gateway/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go
generated
vendored
@ -31,11 +31,7 @@ package unix
|
|||||||
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
|
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
|
||||||
//sys setfsgid(gid int) (prev int, err error)
|
//sys setfsgid(gid int) (prev int, err error)
|
||||||
//sys setfsuid(uid int) (prev int, err error)
|
//sys setfsuid(uid int) (prev int, err error)
|
||||||
//sysnb Setregid(rgid int, egid int) (err error)
|
|
||||||
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
|
|
||||||
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
|
|
||||||
//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
|
//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
|
||||||
//sysnb Setreuid(ruid int, euid int) (err error)
|
|
||||||
//sys Shutdown(fd int, how int) (err error)
|
//sys Shutdown(fd int, how int) (err error)
|
||||||
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
|
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
|
||||||
//sys Stat(path string, stat *Stat_t) (err error)
|
//sys Stat(path string, stat *Stat_t) (err error)
|
||||||
|
15
gateway/vendor/golang.org/x/sys/unix/syscall_netbsd.go
generated
vendored
15
gateway/vendor/golang.org/x/sys/unix/syscall_netbsd.go
generated
vendored
@ -110,6 +110,20 @@ func direntNamlen(buf []byte) (uint64, bool) {
|
|||||||
return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func SysctlUvmexp(name string) (*Uvmexp, error) {
|
||||||
|
mib, err := sysctlmib(name)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
n := uintptr(SizeofUvmexp)
|
||||||
|
var u Uvmexp
|
||||||
|
if err := sysctl(mib, (*byte)(unsafe.Pointer(&u)), &n, nil, 0); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return &u, nil
|
||||||
|
}
|
||||||
|
|
||||||
func Pipe(p []int) (err error) {
|
func Pipe(p []int) (err error) {
|
||||||
return Pipe2(p, 0)
|
return Pipe2(p, 0)
|
||||||
}
|
}
|
||||||
@ -245,6 +259,7 @@ func Statvfs(path string, buf *Statvfs_t) (err error) {
|
|||||||
//sys Chmod(path string, mode uint32) (err error)
|
//sys Chmod(path string, mode uint32) (err error)
|
||||||
//sys Chown(path string, uid int, gid int) (err error)
|
//sys Chown(path string, uid int, gid int) (err error)
|
||||||
//sys Chroot(path string) (err error)
|
//sys Chroot(path string) (err error)
|
||||||
|
//sys ClockGettime(clockid int32, time *Timespec) (err error)
|
||||||
//sys Close(fd int) (err error)
|
//sys Close(fd int) (err error)
|
||||||
//sys Dup(fd int) (nfd int, err error)
|
//sys Dup(fd int) (nfd int, err error)
|
||||||
//sys Dup2(from int, to int) (err error)
|
//sys Dup2(from int, to int) (err error)
|
||||||
|
1
gateway/vendor/golang.org/x/sys/unix/syscall_openbsd.go
generated
vendored
1
gateway/vendor/golang.org/x/sys/unix/syscall_openbsd.go
generated
vendored
@ -220,6 +220,7 @@ func Uname(uname *Utsname) error {
|
|||||||
//sys Chmod(path string, mode uint32) (err error)
|
//sys Chmod(path string, mode uint32) (err error)
|
||||||
//sys Chown(path string, uid int, gid int) (err error)
|
//sys Chown(path string, uid int, gid int) (err error)
|
||||||
//sys Chroot(path string) (err error)
|
//sys Chroot(path string) (err error)
|
||||||
|
//sys ClockGettime(clockid int32, time *Timespec) (err error)
|
||||||
//sys Close(fd int) (err error)
|
//sys Close(fd int) (err error)
|
||||||
//sys Dup(fd int) (nfd int, err error)
|
//sys Dup(fd int) (nfd int, err error)
|
||||||
//sys Dup2(from int, to int) (err error)
|
//sys Dup2(from int, to int) (err error)
|
||||||
|
4
gateway/vendor/golang.org/x/sys/unix/syscall_openbsd_libc.go
generated
vendored
4
gateway/vendor/golang.org/x/sys/unix/syscall_openbsd_libc.go
generated
vendored
@ -2,8 +2,8 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build (openbsd && 386) || (openbsd && amd64) || (openbsd && arm) || (openbsd && arm64)
|
//go:build openbsd
|
||||||
// +build openbsd,386 openbsd,amd64 openbsd,arm openbsd,arm64
|
// +build openbsd
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
42
gateway/vendor/golang.org/x/sys/unix/syscall_openbsd_ppc64.go
generated
vendored
Normal file
42
gateway/vendor/golang.org/x/sys/unix/syscall_openbsd_ppc64.go
generated
vendored
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build ppc64 && openbsd
|
||||||
|
// +build ppc64,openbsd
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
func setTimespec(sec, nsec int64) Timespec {
|
||||||
|
return Timespec{Sec: sec, Nsec: nsec}
|
||||||
|
}
|
||||||
|
|
||||||
|
func setTimeval(sec, usec int64) Timeval {
|
||||||
|
return Timeval{Sec: sec, Usec: usec}
|
||||||
|
}
|
||||||
|
|
||||||
|
func SetKevent(k *Kevent_t, fd, mode, flags int) {
|
||||||
|
k.Ident = uint64(fd)
|
||||||
|
k.Filter = int16(mode)
|
||||||
|
k.Flags = uint16(flags)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (iov *Iovec) SetLen(length int) {
|
||||||
|
iov.Len = uint64(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
|
msghdr.Controllen = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||||
|
msghdr.Iovlen = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
|
cmsg.Len = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
|
||||||
|
// of openbsd/ppc64 the syscall is called sysctl instead of __sysctl.
|
||||||
|
const SYS___SYSCTL = SYS_SYSCTL
|
42
gateway/vendor/golang.org/x/sys/unix/syscall_openbsd_riscv64.go
generated
vendored
Normal file
42
gateway/vendor/golang.org/x/sys/unix/syscall_openbsd_riscv64.go
generated
vendored
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build riscv64 && openbsd
|
||||||
|
// +build riscv64,openbsd
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
func setTimespec(sec, nsec int64) Timespec {
|
||||||
|
return Timespec{Sec: sec, Nsec: nsec}
|
||||||
|
}
|
||||||
|
|
||||||
|
func setTimeval(sec, usec int64) Timeval {
|
||||||
|
return Timeval{Sec: sec, Usec: usec}
|
||||||
|
}
|
||||||
|
|
||||||
|
func SetKevent(k *Kevent_t, fd, mode, flags int) {
|
||||||
|
k.Ident = uint64(fd)
|
||||||
|
k.Filter = int16(mode)
|
||||||
|
k.Flags = uint16(flags)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (iov *Iovec) SetLen(length int) {
|
||||||
|
iov.Len = uint64(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
|
msghdr.Controllen = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||||
|
msghdr.Iovlen = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
|
cmsg.Len = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
|
||||||
|
// of openbsd/riscv64 the syscall is called sysctl instead of __sysctl.
|
||||||
|
const SYS___SYSCTL = SYS_SYSCTL
|
216
gateway/vendor/golang.org/x/sys/unix/syscall_solaris.go
generated
vendored
216
gateway/vendor/golang.org/x/sys/unix/syscall_solaris.go
generated
vendored
@ -590,6 +590,7 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
|||||||
//sys Chmod(path string, mode uint32) (err error)
|
//sys Chmod(path string, mode uint32) (err error)
|
||||||
//sys Chown(path string, uid int, gid int) (err error)
|
//sys Chown(path string, uid int, gid int) (err error)
|
||||||
//sys Chroot(path string) (err error)
|
//sys Chroot(path string) (err error)
|
||||||
|
//sys ClockGettime(clockid int32, time *Timespec) (err error)
|
||||||
//sys Close(fd int) (err error)
|
//sys Close(fd int) (err error)
|
||||||
//sys Creat(path string, mode uint32) (fd int, err error)
|
//sys Creat(path string, mode uint32) (fd int, err error)
|
||||||
//sys Dup(fd int) (nfd int, err error)
|
//sys Dup(fd int) (nfd int, err error)
|
||||||
@ -750,8 +751,8 @@ type EventPort struct {
|
|||||||
// we should handle things gracefully. To do so, we need to keep an extra
|
// we should handle things gracefully. To do so, we need to keep an extra
|
||||||
// reference to the cookie around until the event is processed
|
// reference to the cookie around until the event is processed
|
||||||
// thus the otherwise seemingly extraneous "cookies" map
|
// thus the otherwise seemingly extraneous "cookies" map
|
||||||
// The key of this map is a pointer to the corresponding &fCookie.cookie
|
// The key of this map is a pointer to the corresponding fCookie
|
||||||
cookies map[*interface{}]*fileObjCookie
|
cookies map[*fileObjCookie]struct{}
|
||||||
}
|
}
|
||||||
|
|
||||||
// PortEvent is an abstraction of the port_event C struct.
|
// PortEvent is an abstraction of the port_event C struct.
|
||||||
@ -778,7 +779,7 @@ func NewEventPort() (*EventPort, error) {
|
|||||||
port: port,
|
port: port,
|
||||||
fds: make(map[uintptr]*fileObjCookie),
|
fds: make(map[uintptr]*fileObjCookie),
|
||||||
paths: make(map[string]*fileObjCookie),
|
paths: make(map[string]*fileObjCookie),
|
||||||
cookies: make(map[*interface{}]*fileObjCookie),
|
cookies: make(map[*fileObjCookie]struct{}),
|
||||||
}
|
}
|
||||||
return e, nil
|
return e, nil
|
||||||
}
|
}
|
||||||
@ -799,6 +800,7 @@ func (e *EventPort) Close() error {
|
|||||||
}
|
}
|
||||||
e.fds = nil
|
e.fds = nil
|
||||||
e.paths = nil
|
e.paths = nil
|
||||||
|
e.cookies = nil
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -826,17 +828,16 @@ func (e *EventPort) AssociatePath(path string, stat os.FileInfo, events int, coo
|
|||||||
if _, found := e.paths[path]; found {
|
if _, found := e.paths[path]; found {
|
||||||
return fmt.Errorf("%v is already associated with this Event Port", path)
|
return fmt.Errorf("%v is already associated with this Event Port", path)
|
||||||
}
|
}
|
||||||
fobj, err := createFileObj(path, stat)
|
fCookie, err := createFileObjCookie(path, stat, cookie)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
fCookie := &fileObjCookie{fobj, cookie}
|
_, err = port_associate(e.port, PORT_SOURCE_FILE, uintptr(unsafe.Pointer(fCookie.fobj)), events, (*byte)(unsafe.Pointer(fCookie)))
|
||||||
_, err = port_associate(e.port, PORT_SOURCE_FILE, uintptr(unsafe.Pointer(fobj)), events, (*byte)(unsafe.Pointer(&fCookie.cookie)))
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
e.paths[path] = fCookie
|
e.paths[path] = fCookie
|
||||||
e.cookies[&fCookie.cookie] = fCookie
|
e.cookies[fCookie] = struct{}{}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -858,7 +859,7 @@ func (e *EventPort) DissociatePath(path string) error {
|
|||||||
if err == nil {
|
if err == nil {
|
||||||
// dissociate was successful, safe to delete the cookie
|
// dissociate was successful, safe to delete the cookie
|
||||||
fCookie := e.paths[path]
|
fCookie := e.paths[path]
|
||||||
delete(e.cookies, &fCookie.cookie)
|
delete(e.cookies, fCookie)
|
||||||
}
|
}
|
||||||
delete(e.paths, path)
|
delete(e.paths, path)
|
||||||
return err
|
return err
|
||||||
@ -871,13 +872,16 @@ func (e *EventPort) AssociateFd(fd uintptr, events int, cookie interface{}) erro
|
|||||||
if _, found := e.fds[fd]; found {
|
if _, found := e.fds[fd]; found {
|
||||||
return fmt.Errorf("%v is already associated with this Event Port", fd)
|
return fmt.Errorf("%v is already associated with this Event Port", fd)
|
||||||
}
|
}
|
||||||
fCookie := &fileObjCookie{nil, cookie}
|
fCookie, err := createFileObjCookie("", nil, cookie)
|
||||||
_, err := port_associate(e.port, PORT_SOURCE_FD, fd, events, (*byte)(unsafe.Pointer(&fCookie.cookie)))
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
_, err = port_associate(e.port, PORT_SOURCE_FD, fd, events, (*byte)(unsafe.Pointer(fCookie)))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
e.fds[fd] = fCookie
|
e.fds[fd] = fCookie
|
||||||
e.cookies[&fCookie.cookie] = fCookie
|
e.cookies[fCookie] = struct{}{}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -896,27 +900,31 @@ func (e *EventPort) DissociateFd(fd uintptr) error {
|
|||||||
if err == nil {
|
if err == nil {
|
||||||
// dissociate was successful, safe to delete the cookie
|
// dissociate was successful, safe to delete the cookie
|
||||||
fCookie := e.fds[fd]
|
fCookie := e.fds[fd]
|
||||||
delete(e.cookies, &fCookie.cookie)
|
delete(e.cookies, fCookie)
|
||||||
}
|
}
|
||||||
delete(e.fds, fd)
|
delete(e.fds, fd)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
func createFileObj(name string, stat os.FileInfo) (*fileObj, error) {
|
func createFileObjCookie(name string, stat os.FileInfo, cookie interface{}) (*fileObjCookie, error) {
|
||||||
fobj := new(fileObj)
|
fCookie := new(fileObjCookie)
|
||||||
bs, err := ByteSliceFromString(name)
|
fCookie.cookie = cookie
|
||||||
if err != nil {
|
if name != "" && stat != nil {
|
||||||
return nil, err
|
fCookie.fobj = new(fileObj)
|
||||||
|
bs, err := ByteSliceFromString(name)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
fCookie.fobj.Name = (*int8)(unsafe.Pointer(&bs[0]))
|
||||||
|
s := stat.Sys().(*syscall.Stat_t)
|
||||||
|
fCookie.fobj.Atim.Sec = s.Atim.Sec
|
||||||
|
fCookie.fobj.Atim.Nsec = s.Atim.Nsec
|
||||||
|
fCookie.fobj.Mtim.Sec = s.Mtim.Sec
|
||||||
|
fCookie.fobj.Mtim.Nsec = s.Mtim.Nsec
|
||||||
|
fCookie.fobj.Ctim.Sec = s.Ctim.Sec
|
||||||
|
fCookie.fobj.Ctim.Nsec = s.Ctim.Nsec
|
||||||
}
|
}
|
||||||
fobj.Name = (*int8)(unsafe.Pointer(&bs[0]))
|
return fCookie, nil
|
||||||
s := stat.Sys().(*syscall.Stat_t)
|
|
||||||
fobj.Atim.Sec = s.Atim.Sec
|
|
||||||
fobj.Atim.Nsec = s.Atim.Nsec
|
|
||||||
fobj.Mtim.Sec = s.Mtim.Sec
|
|
||||||
fobj.Mtim.Nsec = s.Mtim.Nsec
|
|
||||||
fobj.Ctim.Sec = s.Ctim.Sec
|
|
||||||
fobj.Ctim.Nsec = s.Ctim.Nsec
|
|
||||||
return fobj, nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetOne wraps port_get(3c) and returns a single PortEvent.
|
// GetOne wraps port_get(3c) and returns a single PortEvent.
|
||||||
@ -929,44 +937,50 @@ func (e *EventPort) GetOne(t *Timespec) (*PortEvent, error) {
|
|||||||
p := new(PortEvent)
|
p := new(PortEvent)
|
||||||
e.mu.Lock()
|
e.mu.Lock()
|
||||||
defer e.mu.Unlock()
|
defer e.mu.Unlock()
|
||||||
e.peIntToExt(pe, p)
|
err = e.peIntToExt(pe, p)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
return p, nil
|
return p, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// peIntToExt converts a cgo portEvent struct into the friendlier PortEvent
|
// peIntToExt converts a cgo portEvent struct into the friendlier PortEvent
|
||||||
// NOTE: Always call this function while holding the e.mu mutex
|
// NOTE: Always call this function while holding the e.mu mutex
|
||||||
func (e *EventPort) peIntToExt(peInt *portEvent, peExt *PortEvent) {
|
func (e *EventPort) peIntToExt(peInt *portEvent, peExt *PortEvent) error {
|
||||||
|
if e.cookies == nil {
|
||||||
|
return fmt.Errorf("this EventPort is already closed")
|
||||||
|
}
|
||||||
peExt.Events = peInt.Events
|
peExt.Events = peInt.Events
|
||||||
peExt.Source = peInt.Source
|
peExt.Source = peInt.Source
|
||||||
cookie := (*interface{})(unsafe.Pointer(peInt.User))
|
fCookie := (*fileObjCookie)(unsafe.Pointer(peInt.User))
|
||||||
peExt.Cookie = *cookie
|
_, found := e.cookies[fCookie]
|
||||||
|
|
||||||
|
if !found {
|
||||||
|
panic("unexpected event port address; may be due to kernel bug; see https://go.dev/issue/54254")
|
||||||
|
}
|
||||||
|
peExt.Cookie = fCookie.cookie
|
||||||
|
delete(e.cookies, fCookie)
|
||||||
|
|
||||||
switch peInt.Source {
|
switch peInt.Source {
|
||||||
case PORT_SOURCE_FD:
|
case PORT_SOURCE_FD:
|
||||||
delete(e.cookies, cookie)
|
|
||||||
peExt.Fd = uintptr(peInt.Object)
|
peExt.Fd = uintptr(peInt.Object)
|
||||||
// Only remove the fds entry if it exists and this cookie matches
|
// Only remove the fds entry if it exists and this cookie matches
|
||||||
if fobj, ok := e.fds[peExt.Fd]; ok {
|
if fobj, ok := e.fds[peExt.Fd]; ok {
|
||||||
if &fobj.cookie == cookie {
|
if fobj == fCookie {
|
||||||
delete(e.fds, peExt.Fd)
|
delete(e.fds, peExt.Fd)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case PORT_SOURCE_FILE:
|
case PORT_SOURCE_FILE:
|
||||||
if fCookie, ok := e.cookies[cookie]; ok && uintptr(unsafe.Pointer(fCookie.fobj)) == uintptr(peInt.Object) {
|
peExt.fobj = fCookie.fobj
|
||||||
// Use our stashed reference rather than using unsafe on what we got back
|
|
||||||
// the unsafe version would be (*fileObj)(unsafe.Pointer(uintptr(peInt.Object)))
|
|
||||||
peExt.fobj = fCookie.fobj
|
|
||||||
} else {
|
|
||||||
panic("mismanaged memory")
|
|
||||||
}
|
|
||||||
delete(e.cookies, cookie)
|
|
||||||
peExt.Path = BytePtrToString((*byte)(unsafe.Pointer(peExt.fobj.Name)))
|
peExt.Path = BytePtrToString((*byte)(unsafe.Pointer(peExt.fobj.Name)))
|
||||||
// Only remove the paths entry if it exists and this cookie matches
|
// Only remove the paths entry if it exists and this cookie matches
|
||||||
if fobj, ok := e.paths[peExt.Path]; ok {
|
if fobj, ok := e.paths[peExt.Path]; ok {
|
||||||
if &fobj.cookie == cookie {
|
if fobj == fCookie {
|
||||||
delete(e.paths, peExt.Path)
|
delete(e.paths, peExt.Path)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pending wraps port_getn(3c) and returns how many events are pending.
|
// Pending wraps port_getn(3c) and returns how many events are pending.
|
||||||
@ -990,7 +1004,7 @@ func (e *EventPort) Get(s []PortEvent, min int, timeout *Timespec) (int, error)
|
|||||||
got := uint32(min)
|
got := uint32(min)
|
||||||
max := uint32(len(s))
|
max := uint32(len(s))
|
||||||
var err error
|
var err error
|
||||||
ps := make([]portEvent, max, max)
|
ps := make([]portEvent, max)
|
||||||
_, err = port_getn(e.port, &ps[0], max, &got, timeout)
|
_, err = port_getn(e.port, &ps[0], max, &got, timeout)
|
||||||
// got will be trustworthy with ETIME, but not any other error.
|
// got will be trustworthy with ETIME, but not any other error.
|
||||||
if err != nil && err != ETIME {
|
if err != nil && err != ETIME {
|
||||||
@ -998,8 +1012,122 @@ func (e *EventPort) Get(s []PortEvent, min int, timeout *Timespec) (int, error)
|
|||||||
}
|
}
|
||||||
e.mu.Lock()
|
e.mu.Lock()
|
||||||
defer e.mu.Unlock()
|
defer e.mu.Unlock()
|
||||||
|
valid := 0
|
||||||
for i := 0; i < int(got); i++ {
|
for i := 0; i < int(got); i++ {
|
||||||
e.peIntToExt(&ps[i], &s[i])
|
err2 := e.peIntToExt(&ps[i], &s[i])
|
||||||
|
if err2 != nil {
|
||||||
|
if valid == 0 && err == nil {
|
||||||
|
// If err2 is the only error and there are no valid events
|
||||||
|
// to return, return it to the caller.
|
||||||
|
err = err2
|
||||||
|
}
|
||||||
|
break
|
||||||
|
}
|
||||||
|
valid = i + 1
|
||||||
}
|
}
|
||||||
return int(got), err
|
return valid, err
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys putmsg(fd int, clptr *strbuf, dataptr *strbuf, flags int) (err error)
|
||||||
|
|
||||||
|
func Putmsg(fd int, cl []byte, data []byte, flags int) (err error) {
|
||||||
|
var clp, datap *strbuf
|
||||||
|
if len(cl) > 0 {
|
||||||
|
clp = &strbuf{
|
||||||
|
Len: int32(len(cl)),
|
||||||
|
Buf: (*int8)(unsafe.Pointer(&cl[0])),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if len(data) > 0 {
|
||||||
|
datap = &strbuf{
|
||||||
|
Len: int32(len(data)),
|
||||||
|
Buf: (*int8)(unsafe.Pointer(&data[0])),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return putmsg(fd, clp, datap, flags)
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys getmsg(fd int, clptr *strbuf, dataptr *strbuf, flags *int) (err error)
|
||||||
|
|
||||||
|
func Getmsg(fd int, cl []byte, data []byte) (retCl []byte, retData []byte, flags int, err error) {
|
||||||
|
var clp, datap *strbuf
|
||||||
|
if len(cl) > 0 {
|
||||||
|
clp = &strbuf{
|
||||||
|
Maxlen: int32(len(cl)),
|
||||||
|
Buf: (*int8)(unsafe.Pointer(&cl[0])),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if len(data) > 0 {
|
||||||
|
datap = &strbuf{
|
||||||
|
Maxlen: int32(len(data)),
|
||||||
|
Buf: (*int8)(unsafe.Pointer(&data[0])),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if err = getmsg(fd, clp, datap, &flags); err != nil {
|
||||||
|
return nil, nil, 0, err
|
||||||
|
}
|
||||||
|
|
||||||
|
if len(cl) > 0 {
|
||||||
|
retCl = cl[:clp.Len]
|
||||||
|
}
|
||||||
|
if len(data) > 0 {
|
||||||
|
retData = data[:datap.Len]
|
||||||
|
}
|
||||||
|
return retCl, retData, flags, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlSetIntRetInt(fd int, req uint, arg int) (int, error) {
|
||||||
|
return ioctlRet(fd, req, uintptr(arg))
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlSetString(fd int, req uint, val string) error {
|
||||||
|
bs := make([]byte, len(val)+1)
|
||||||
|
copy(bs[:len(bs)-1], val)
|
||||||
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&bs[0])))
|
||||||
|
runtime.KeepAlive(&bs[0])
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
// Lifreq Helpers
|
||||||
|
|
||||||
|
func (l *Lifreq) SetName(name string) error {
|
||||||
|
if len(name) >= len(l.Name) {
|
||||||
|
return fmt.Errorf("name cannot be more than %d characters", len(l.Name)-1)
|
||||||
|
}
|
||||||
|
for i := range name {
|
||||||
|
l.Name[i] = int8(name[i])
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (l *Lifreq) SetLifruInt(d int) {
|
||||||
|
*(*int)(unsafe.Pointer(&l.Lifru[0])) = d
|
||||||
|
}
|
||||||
|
|
||||||
|
func (l *Lifreq) GetLifruInt() int {
|
||||||
|
return *(*int)(unsafe.Pointer(&l.Lifru[0]))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (l *Lifreq) SetLifruUint(d uint) {
|
||||||
|
*(*uint)(unsafe.Pointer(&l.Lifru[0])) = d
|
||||||
|
}
|
||||||
|
|
||||||
|
func (l *Lifreq) GetLifruUint() uint {
|
||||||
|
return *(*uint)(unsafe.Pointer(&l.Lifru[0]))
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlLifreq(fd int, req uint, l *Lifreq) error {
|
||||||
|
return ioctl(fd, req, uintptr(unsafe.Pointer(l)))
|
||||||
|
}
|
||||||
|
|
||||||
|
// Strioctl Helpers
|
||||||
|
|
||||||
|
func (s *Strioctl) SetInt(i int) {
|
||||||
|
s.Len = int32(unsafe.Sizeof(i))
|
||||||
|
s.Dp = (*int8)(unsafe.Pointer(&i))
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlSetStrioctlRetInt(fd int, req uint, s *Strioctl) (int, error) {
|
||||||
|
return ioctlRet(fd, req, uintptr(unsafe.Pointer(s)))
|
||||||
}
|
}
|
||||||
|
75
gateway/vendor/golang.org/x/sys/unix/syscall_unix.go
generated
vendored
75
gateway/vendor/golang.org/x/sys/unix/syscall_unix.go
generated
vendored
@ -13,8 +13,6 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"syscall"
|
"syscall"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
||||||
"golang.org/x/sys/internal/unsafeheader"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -117,11 +115,7 @@ func (m *mmapper) Mmap(fd int, offset int64, length int, prot int, flags int) (d
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Use unsafe to convert addr into a []byte.
|
// Use unsafe to convert addr into a []byte.
|
||||||
var b []byte
|
b := unsafe.Slice((*byte)(unsafe.Pointer(addr)), length)
|
||||||
hdr := (*unsafeheader.Slice)(unsafe.Pointer(&b))
|
|
||||||
hdr.Data = unsafe.Pointer(addr)
|
|
||||||
hdr.Cap = length
|
|
||||||
hdr.Len = length
|
|
||||||
|
|
||||||
// Register mapping in m and return it.
|
// Register mapping in m and return it.
|
||||||
p := &b[cap(b)-1]
|
p := &b[cap(b)-1]
|
||||||
@ -337,6 +331,19 @@ func Recvfrom(fd int, p []byte, flags int) (n int, from Sockaddr, err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Recvmsg receives a message from a socket using the recvmsg system call. The
|
||||||
|
// received non-control data will be written to p, and any "out of band"
|
||||||
|
// control data will be written to oob. The flags are passed to recvmsg.
|
||||||
|
//
|
||||||
|
// The results are:
|
||||||
|
// - n is the number of non-control data bytes read into p
|
||||||
|
// - oobn is the number of control data bytes read into oob; this may be interpreted using [ParseSocketControlMessage]
|
||||||
|
// - recvflags is flags returned by recvmsg
|
||||||
|
// - from is the address of the sender
|
||||||
|
//
|
||||||
|
// If the underlying socket type is not SOCK_DGRAM, a received message
|
||||||
|
// containing oob data and a single '\0' of non-control data is treated as if
|
||||||
|
// the message contained only control data, i.e. n will be zero on return.
|
||||||
func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error) {
|
func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error) {
|
||||||
var iov [1]Iovec
|
var iov [1]Iovec
|
||||||
if len(p) > 0 {
|
if len(p) > 0 {
|
||||||
@ -352,13 +359,9 @@ func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// RecvmsgBuffers receives a message from a socket using the recvmsg
|
// RecvmsgBuffers receives a message from a socket using the recvmsg system
|
||||||
// system call. The flags are passed to recvmsg. Any non-control data
|
// call. This function is equivalent to Recvmsg, but non-control data read is
|
||||||
// read is scattered into the buffers slices. The results are:
|
// scattered into the buffers slices.
|
||||||
// - n is the number of non-control data read into bufs
|
|
||||||
// - oobn is the number of control data read into oob; this may be interpreted using [ParseSocketControlMessage]
|
|
||||||
// - recvflags is flags returned by recvmsg
|
|
||||||
// - from is the address of the sender
|
|
||||||
func RecvmsgBuffers(fd int, buffers [][]byte, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error) {
|
func RecvmsgBuffers(fd int, buffers [][]byte, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error) {
|
||||||
iov := make([]Iovec, len(buffers))
|
iov := make([]Iovec, len(buffers))
|
||||||
for i := range buffers {
|
for i := range buffers {
|
||||||
@ -377,11 +380,38 @@ func RecvmsgBuffers(fd int, buffers [][]byte, oob []byte, flags int) (n, oobn in
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Sendmsg sends a message on a socket to an address using the sendmsg system
|
||||||
|
// call. This function is equivalent to SendmsgN, but does not return the
|
||||||
|
// number of bytes actually sent.
|
||||||
func Sendmsg(fd int, p, oob []byte, to Sockaddr, flags int) (err error) {
|
func Sendmsg(fd int, p, oob []byte, to Sockaddr, flags int) (err error) {
|
||||||
_, err = SendmsgN(fd, p, oob, to, flags)
|
_, err = SendmsgN(fd, p, oob, to, flags)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SendmsgN sends a message on a socket to an address using the sendmsg system
|
||||||
|
// call. p contains the non-control data to send, and oob contains the "out of
|
||||||
|
// band" control data. The flags are passed to sendmsg. The number of
|
||||||
|
// non-control bytes actually written to the socket is returned.
|
||||||
|
//
|
||||||
|
// Some socket types do not support sending control data without accompanying
|
||||||
|
// non-control data. If p is empty, and oob contains control data, and the
|
||||||
|
// underlying socket type is not SOCK_DGRAM, p will be treated as containing a
|
||||||
|
// single '\0' and the return value will indicate zero bytes sent.
|
||||||
|
//
|
||||||
|
// The Go function Recvmsg, if called with an empty p and a non-empty oob,
|
||||||
|
// will read and ignore this additional '\0'. If the message is received by
|
||||||
|
// code that does not use Recvmsg, or that does not use Go at all, that code
|
||||||
|
// will need to be written to expect and ignore the additional '\0'.
|
||||||
|
//
|
||||||
|
// If you need to send non-empty oob with p actually empty, and if the
|
||||||
|
// underlying socket type supports it, you can do so via a raw system call as
|
||||||
|
// follows:
|
||||||
|
//
|
||||||
|
// msg := &unix.Msghdr{
|
||||||
|
// Control: &oob[0],
|
||||||
|
// }
|
||||||
|
// msg.SetControllen(len(oob))
|
||||||
|
// n, _, errno := unix.Syscall(unix.SYS_SENDMSG, uintptr(fd), uintptr(unsafe.Pointer(msg)), flags)
|
||||||
func SendmsgN(fd int, p, oob []byte, to Sockaddr, flags int) (n int, err error) {
|
func SendmsgN(fd int, p, oob []byte, to Sockaddr, flags int) (n int, err error) {
|
||||||
var iov [1]Iovec
|
var iov [1]Iovec
|
||||||
if len(p) > 0 {
|
if len(p) > 0 {
|
||||||
@ -400,9 +430,8 @@ func SendmsgN(fd int, p, oob []byte, to Sockaddr, flags int) (n int, err error)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// SendmsgBuffers sends a message on a socket to an address using the sendmsg
|
// SendmsgBuffers sends a message on a socket to an address using the sendmsg
|
||||||
// system call. The flags are passed to sendmsg. Any non-control data written
|
// system call. This function is equivalent to SendmsgN, but the non-control
|
||||||
// is gathered from buffers. The function returns the number of bytes written
|
// data is gathered from buffers.
|
||||||
// to the socket.
|
|
||||||
func SendmsgBuffers(fd int, buffers [][]byte, oob []byte, to Sockaddr, flags int) (n int, err error) {
|
func SendmsgBuffers(fd int, buffers [][]byte, oob []byte, to Sockaddr, flags int) (n int, err error) {
|
||||||
iov := make([]Iovec, len(buffers))
|
iov := make([]Iovec, len(buffers))
|
||||||
for i := range buffers {
|
for i := range buffers {
|
||||||
@ -429,11 +458,15 @@ func Send(s int, buf []byte, flags int) (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Sendto(fd int, p []byte, flags int, to Sockaddr) (err error) {
|
func Sendto(fd int, p []byte, flags int, to Sockaddr) (err error) {
|
||||||
ptr, n, err := to.sockaddr()
|
var ptr unsafe.Pointer
|
||||||
if err != nil {
|
var salen _Socklen
|
||||||
return err
|
if to != nil {
|
||||||
|
ptr, salen, err = to.sockaddr()
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return sendto(fd, p, flags, ptr, n)
|
return sendto(fd, p, flags, ptr, salen)
|
||||||
}
|
}
|
||||||
|
|
||||||
func SetsockoptByte(fd, level, opt int, value byte) (err error) {
|
func SetsockoptByte(fd, level, opt int, value byte) (err error) {
|
||||||
|
6
gateway/vendor/golang.org/x/sys/unix/syscall_unix_gc.go
generated
vendored
6
gateway/vendor/golang.org/x/sys/unix/syscall_unix_gc.go
generated
vendored
@ -2,11 +2,9 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
//go:build (darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris) && gc && !ppc64le && !ppc64
|
//go:build (darwin || dragonfly || freebsd || (linux && !ppc64 && !ppc64le) || netbsd || openbsd || solaris) && gc
|
||||||
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
|
// +build darwin dragonfly freebsd linux,!ppc64,!ppc64le netbsd openbsd solaris
|
||||||
// +build gc
|
// +build gc
|
||||||
// +build !ppc64le
|
|
||||||
// +build !ppc64
|
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
173
gateway/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go
generated
vendored
173
gateway/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go
generated
vendored
@ -9,8 +9,10 @@ package unix
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
"fmt"
|
||||||
"runtime"
|
"runtime"
|
||||||
"sort"
|
"sort"
|
||||||
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
"syscall"
|
"syscall"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
@ -55,7 +57,13 @@ func (d *Dirent) NameString() string {
|
|||||||
if d == nil {
|
if d == nil {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
return string(d.Name[:d.Namlen])
|
s := string(d.Name[:])
|
||||||
|
idx := strings.IndexByte(s, 0)
|
||||||
|
if idx == -1 {
|
||||||
|
return s
|
||||||
|
} else {
|
||||||
|
return s[:idx]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (sa *SockaddrInet4) sockaddr() (unsafe.Pointer, _Socklen, error) {
|
func (sa *SockaddrInet4) sockaddr() (unsafe.Pointer, _Socklen, error) {
|
||||||
@ -1230,6 +1238,14 @@ func Readdir(dir uintptr) (*Dirent, error) {
|
|||||||
return &ent, err
|
return &ent, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func readdir_r(dirp uintptr, entry *direntLE, result **direntLE) (err error) {
|
||||||
|
r0, _, e1 := syscall_syscall(SYS___READDIR_R_A, dirp, uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result)))
|
||||||
|
if int64(r0) == -1 {
|
||||||
|
err = errnoErr(Errno(e1))
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
func Closedir(dir uintptr) error {
|
func Closedir(dir uintptr) error {
|
||||||
_, _, e := syscall_syscall(SYS_CLOSEDIR, dir, 0, 0)
|
_, _, e := syscall_syscall(SYS_CLOSEDIR, dir, 0, 0)
|
||||||
if e != 0 {
|
if e != 0 {
|
||||||
@ -1821,3 +1837,158 @@ func Unmount(name string, mtm int) (err error) {
|
|||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func fdToPath(dirfd int) (path string, err error) {
|
||||||
|
var buffer [1024]byte
|
||||||
|
// w_ctrl()
|
||||||
|
ret := runtime.CallLeFuncByPtr(runtime.XplinkLibvec+SYS_W_IOCTL<<4,
|
||||||
|
[]uintptr{uintptr(dirfd), 17, 1024, uintptr(unsafe.Pointer(&buffer[0]))})
|
||||||
|
if ret == 0 {
|
||||||
|
zb := bytes.IndexByte(buffer[:], 0)
|
||||||
|
if zb == -1 {
|
||||||
|
zb = len(buffer)
|
||||||
|
}
|
||||||
|
// __e2a_l()
|
||||||
|
runtime.CallLeFuncByPtr(runtime.XplinkLibvec+SYS___E2A_L<<4,
|
||||||
|
[]uintptr{uintptr(unsafe.Pointer(&buffer[0])), uintptr(zb)})
|
||||||
|
return string(buffer[:zb]), nil
|
||||||
|
}
|
||||||
|
// __errno()
|
||||||
|
errno := int(*(*int32)(unsafe.Pointer(runtime.CallLeFuncByPtr(runtime.XplinkLibvec+SYS___ERRNO<<4,
|
||||||
|
[]uintptr{}))))
|
||||||
|
// __errno2()
|
||||||
|
errno2 := int(runtime.CallLeFuncByPtr(runtime.XplinkLibvec+SYS___ERRNO2<<4,
|
||||||
|
[]uintptr{}))
|
||||||
|
// strerror_r()
|
||||||
|
ret = runtime.CallLeFuncByPtr(runtime.XplinkLibvec+SYS_STRERROR_R<<4,
|
||||||
|
[]uintptr{uintptr(errno), uintptr(unsafe.Pointer(&buffer[0])), 1024})
|
||||||
|
if ret == 0 {
|
||||||
|
zb := bytes.IndexByte(buffer[:], 0)
|
||||||
|
if zb == -1 {
|
||||||
|
zb = len(buffer)
|
||||||
|
}
|
||||||
|
return "", fmt.Errorf("%s (errno2=0x%x)", buffer[:zb], errno2)
|
||||||
|
} else {
|
||||||
|
return "", fmt.Errorf("fdToPath errno %d (errno2=0x%x)", errno, errno2)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntLeToDirentUnix(dirent *direntLE, dir uintptr, path string) (Dirent, error) {
|
||||||
|
var d Dirent
|
||||||
|
|
||||||
|
d.Ino = uint64(dirent.Ino)
|
||||||
|
offset, err := Telldir(dir)
|
||||||
|
if err != nil {
|
||||||
|
return d, err
|
||||||
|
}
|
||||||
|
|
||||||
|
d.Off = int64(offset)
|
||||||
|
s := string(bytes.Split(dirent.Name[:], []byte{0})[0])
|
||||||
|
copy(d.Name[:], s)
|
||||||
|
|
||||||
|
d.Reclen = uint16(24 + len(d.NameString()))
|
||||||
|
var st Stat_t
|
||||||
|
path = path + "/" + s
|
||||||
|
err = Lstat(path, &st)
|
||||||
|
if err != nil {
|
||||||
|
return d, err
|
||||||
|
}
|
||||||
|
|
||||||
|
d.Type = uint8(st.Mode >> 24)
|
||||||
|
return d, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
|
||||||
|
// Simulation of Getdirentries port from the Darwin implementation.
|
||||||
|
// COMMENTS FROM DARWIN:
|
||||||
|
// It's not the full required semantics, but should handle the case
|
||||||
|
// of calling Getdirentries or ReadDirent repeatedly.
|
||||||
|
// It won't handle assigning the results of lseek to *basep, or handle
|
||||||
|
// the directory being edited underfoot.
|
||||||
|
|
||||||
|
skip, err := Seek(fd, 0, 1 /* SEEK_CUR */)
|
||||||
|
if err != nil {
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
|
||||||
|
// Get path from fd to avoid unavailable call (fdopendir)
|
||||||
|
path, err := fdToPath(fd)
|
||||||
|
if err != nil {
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
d, err := Opendir(path)
|
||||||
|
if err != nil {
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
defer Closedir(d)
|
||||||
|
|
||||||
|
var cnt int64
|
||||||
|
for {
|
||||||
|
var entryLE direntLE
|
||||||
|
var entrypLE *direntLE
|
||||||
|
e := readdir_r(d, &entryLE, &entrypLE)
|
||||||
|
if e != nil {
|
||||||
|
return n, e
|
||||||
|
}
|
||||||
|
if entrypLE == nil {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
if skip > 0 {
|
||||||
|
skip--
|
||||||
|
cnt++
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
// Dirent on zos has a different structure
|
||||||
|
entry, e := direntLeToDirentUnix(&entryLE, d, path)
|
||||||
|
if e != nil {
|
||||||
|
return n, e
|
||||||
|
}
|
||||||
|
|
||||||
|
reclen := int(entry.Reclen)
|
||||||
|
if reclen > len(buf) {
|
||||||
|
// Not enough room. Return for now.
|
||||||
|
// The counter will let us know where we should start up again.
|
||||||
|
// Note: this strategy for suspending in the middle and
|
||||||
|
// restarting is O(n^2) in the length of the directory. Oh well.
|
||||||
|
break
|
||||||
|
}
|
||||||
|
|
||||||
|
// Copy entry into return buffer.
|
||||||
|
s := unsafe.Slice((*byte)(unsafe.Pointer(&entry)), reclen)
|
||||||
|
copy(buf, s)
|
||||||
|
|
||||||
|
buf = buf[reclen:]
|
||||||
|
n += reclen
|
||||||
|
cnt++
|
||||||
|
}
|
||||||
|
// Set the seek offset of the input fd to record
|
||||||
|
// how many files we've already returned.
|
||||||
|
_, err = Seek(fd, cnt, 0 /* SEEK_SET */)
|
||||||
|
if err != nil {
|
||||||
|
return n, err
|
||||||
|
}
|
||||||
|
|
||||||
|
return n, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func ReadDirent(fd int, buf []byte) (n int, err error) {
|
||||||
|
var base = (*uintptr)(unsafe.Pointer(new(uint64)))
|
||||||
|
return Getdirentries(fd, buf, base)
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntIno(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino))
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntReclen(buf []byte) (uint64, bool) {
|
||||||
|
return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
|
||||||
|
}
|
||||||
|
|
||||||
|
func direntNamlen(buf []byte) (uint64, bool) {
|
||||||
|
reclen, ok := direntReclen(buf)
|
||||||
|
if !ok {
|
||||||
|
return 0, false
|
||||||
|
}
|
||||||
|
return reclen - uint64(unsafe.Offsetof(Dirent{}.Name)), true
|
||||||
|
}
|
||||||
|
13
gateway/vendor/golang.org/x/sys/unix/sysvshm_unix.go
generated
vendored
13
gateway/vendor/golang.org/x/sys/unix/sysvshm_unix.go
generated
vendored
@ -7,11 +7,7 @@
|
|||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
import (
|
import "unsafe"
|
||||||
"unsafe"
|
|
||||||
|
|
||||||
"golang.org/x/sys/internal/unsafeheader"
|
|
||||||
)
|
|
||||||
|
|
||||||
// SysvShmAttach attaches the Sysv shared memory segment associated with the
|
// SysvShmAttach attaches the Sysv shared memory segment associated with the
|
||||||
// shared memory identifier id.
|
// shared memory identifier id.
|
||||||
@ -34,12 +30,7 @@ func SysvShmAttach(id int, addr uintptr, flag int) ([]byte, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Use unsafe to convert addr into a []byte.
|
// Use unsafe to convert addr into a []byte.
|
||||||
// TODO: convert to unsafe.Slice once we can assume Go 1.17
|
b := unsafe.Slice((*byte)(unsafe.Pointer(addr)), int(info.Segsz))
|
||||||
var b []byte
|
|
||||||
hdr := (*unsafeheader.Slice)(unsafe.Pointer(&b))
|
|
||||||
hdr.Data = unsafe.Pointer(addr)
|
|
||||||
hdr.Cap = int(info.Segsz)
|
|
||||||
hdr.Len = int(info.Segsz)
|
|
||||||
return b, nil
|
return b, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
95
gateway/vendor/golang.org/x/sys/unix/xattr_bsd.go
generated
vendored
95
gateway/vendor/golang.org/x/sys/unix/xattr_bsd.go
generated
vendored
@ -160,13 +160,12 @@ func Lremovexattr(link string, attr string) (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Listxattr(file string, dest []byte) (sz int, err error) {
|
func Listxattr(file string, dest []byte) (sz int, err error) {
|
||||||
d := initxattrdest(dest, 0)
|
|
||||||
destsiz := len(dest)
|
destsiz := len(dest)
|
||||||
|
|
||||||
// FreeBSD won't allow you to list xattrs from multiple namespaces
|
// FreeBSD won't allow you to list xattrs from multiple namespaces
|
||||||
s := 0
|
s, pos := 0, 0
|
||||||
for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
|
for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
|
||||||
stmp, e := ExtattrListFile(file, nsid, uintptr(d), destsiz)
|
stmp, e := ListxattrNS(file, nsid, dest[pos:])
|
||||||
|
|
||||||
/* Errors accessing system attrs are ignored so that
|
/* Errors accessing system attrs are ignored so that
|
||||||
* we can implement the Linux-like behavior of omitting errors that
|
* we can implement the Linux-like behavior of omitting errors that
|
||||||
@ -175,66 +174,102 @@ func Listxattr(file string, dest []byte) (sz int, err error) {
|
|||||||
* Linux will still error if we ask for user attributes on a file that
|
* Linux will still error if we ask for user attributes on a file that
|
||||||
* we don't have read permissions on, so don't ignore those errors
|
* we don't have read permissions on, so don't ignore those errors
|
||||||
*/
|
*/
|
||||||
if e != nil && e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
|
if e != nil {
|
||||||
continue
|
if e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
|
||||||
} else if e != nil {
|
continue
|
||||||
|
}
|
||||||
return s, e
|
return s, e
|
||||||
}
|
}
|
||||||
|
|
||||||
s += stmp
|
s += stmp
|
||||||
destsiz -= s
|
pos = s
|
||||||
if destsiz < 0 {
|
if pos > destsiz {
|
||||||
destsiz = 0
|
pos = destsiz
|
||||||
}
|
}
|
||||||
d = initxattrdest(dest, s)
|
}
|
||||||
|
|
||||||
|
return s, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func ListxattrNS(file string, nsid int, dest []byte) (sz int, err error) {
|
||||||
|
d := initxattrdest(dest, 0)
|
||||||
|
destsiz := len(dest)
|
||||||
|
|
||||||
|
s, e := ExtattrListFile(file, nsid, uintptr(d), destsiz)
|
||||||
|
if e != nil {
|
||||||
|
return 0, err
|
||||||
}
|
}
|
||||||
|
|
||||||
return s, nil
|
return s, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func Flistxattr(fd int, dest []byte) (sz int, err error) {
|
func Flistxattr(fd int, dest []byte) (sz int, err error) {
|
||||||
d := initxattrdest(dest, 0)
|
|
||||||
destsiz := len(dest)
|
destsiz := len(dest)
|
||||||
|
|
||||||
s := 0
|
s, pos := 0, 0
|
||||||
for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
|
for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
|
||||||
stmp, e := ExtattrListFd(fd, nsid, uintptr(d), destsiz)
|
stmp, e := FlistxattrNS(fd, nsid, dest[pos:])
|
||||||
if e != nil && e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
|
|
||||||
continue
|
if e != nil {
|
||||||
} else if e != nil {
|
if e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
|
||||||
|
continue
|
||||||
|
}
|
||||||
return s, e
|
return s, e
|
||||||
}
|
}
|
||||||
|
|
||||||
s += stmp
|
s += stmp
|
||||||
destsiz -= s
|
pos = s
|
||||||
if destsiz < 0 {
|
if pos > destsiz {
|
||||||
destsiz = 0
|
pos = destsiz
|
||||||
}
|
}
|
||||||
d = initxattrdest(dest, s)
|
}
|
||||||
|
|
||||||
|
return s, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func FlistxattrNS(fd int, nsid int, dest []byte) (sz int, err error) {
|
||||||
|
d := initxattrdest(dest, 0)
|
||||||
|
destsiz := len(dest)
|
||||||
|
|
||||||
|
s, e := ExtattrListFd(fd, nsid, uintptr(d), destsiz)
|
||||||
|
if e != nil {
|
||||||
|
return 0, err
|
||||||
}
|
}
|
||||||
|
|
||||||
return s, nil
|
return s, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func Llistxattr(link string, dest []byte) (sz int, err error) {
|
func Llistxattr(link string, dest []byte) (sz int, err error) {
|
||||||
d := initxattrdest(dest, 0)
|
|
||||||
destsiz := len(dest)
|
destsiz := len(dest)
|
||||||
|
|
||||||
s := 0
|
s, pos := 0, 0
|
||||||
for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
|
for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
|
||||||
stmp, e := ExtattrListLink(link, nsid, uintptr(d), destsiz)
|
stmp, e := LlistxattrNS(link, nsid, dest[pos:])
|
||||||
if e != nil && e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
|
|
||||||
continue
|
if e != nil {
|
||||||
} else if e != nil {
|
if e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
|
||||||
|
continue
|
||||||
|
}
|
||||||
return s, e
|
return s, e
|
||||||
}
|
}
|
||||||
|
|
||||||
s += stmp
|
s += stmp
|
||||||
destsiz -= s
|
pos = s
|
||||||
if destsiz < 0 {
|
if pos > destsiz {
|
||||||
destsiz = 0
|
pos = destsiz
|
||||||
}
|
}
|
||||||
d = initxattrdest(dest, s)
|
}
|
||||||
|
|
||||||
|
return s, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func LlistxattrNS(link string, nsid int, dest []byte) (sz int, err error) {
|
||||||
|
d := initxattrdest(dest, 0)
|
||||||
|
destsiz := len(dest)
|
||||||
|
|
||||||
|
s, e := ExtattrListLink(link, nsid, uintptr(d), destsiz)
|
||||||
|
if e != nil {
|
||||||
|
return 0, err
|
||||||
}
|
}
|
||||||
|
|
||||||
return s, nil
|
return s, nil
|
||||||
|
356
gateway/vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go
generated
vendored
356
gateway/vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go
generated
vendored
@ -46,6 +46,7 @@ const (
|
|||||||
AF_SNA = 0xb
|
AF_SNA = 0xb
|
||||||
AF_UNIX = 0x1
|
AF_UNIX = 0x1
|
||||||
AF_UNSPEC = 0x0
|
AF_UNSPEC = 0x0
|
||||||
|
ALTWERASE = 0x200
|
||||||
ARPHRD_ETHER = 0x1
|
ARPHRD_ETHER = 0x1
|
||||||
ARPHRD_FRELAY = 0xf
|
ARPHRD_FRELAY = 0xf
|
||||||
ARPHRD_IEEE1394 = 0x18
|
ARPHRD_IEEE1394 = 0x18
|
||||||
@ -108,6 +109,15 @@ const (
|
|||||||
BPF_DIRECTION_IN = 0x1
|
BPF_DIRECTION_IN = 0x1
|
||||||
BPF_DIRECTION_OUT = 0x2
|
BPF_DIRECTION_OUT = 0x2
|
||||||
BPF_DIV = 0x30
|
BPF_DIV = 0x30
|
||||||
|
BPF_FILDROP_CAPTURE = 0x1
|
||||||
|
BPF_FILDROP_DROP = 0x2
|
||||||
|
BPF_FILDROP_PASS = 0x0
|
||||||
|
BPF_F_DIR_IN = 0x10
|
||||||
|
BPF_F_DIR_MASK = 0x30
|
||||||
|
BPF_F_DIR_OUT = 0x20
|
||||||
|
BPF_F_DIR_SHIFT = 0x4
|
||||||
|
BPF_F_FLOWID = 0x8
|
||||||
|
BPF_F_PRI_MASK = 0x7
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
@ -136,6 +146,7 @@ const (
|
|||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
BPF_RELEASE = 0x30bb6
|
BPF_RELEASE = 0x30bb6
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
|
BPF_RND = 0xc0
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
@ -147,6 +158,12 @@ const (
|
|||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
CLOCAL = 0x8000
|
CLOCAL = 0x8000
|
||||||
|
CLOCK_BOOTTIME = 0x6
|
||||||
|
CLOCK_MONOTONIC = 0x3
|
||||||
|
CLOCK_PROCESS_CPUTIME_ID = 0x2
|
||||||
|
CLOCK_REALTIME = 0x0
|
||||||
|
CLOCK_THREAD_CPUTIME_ID = 0x4
|
||||||
|
CLOCK_UPTIME = 0x5
|
||||||
CPUSTATES = 0x6
|
CPUSTATES = 0x6
|
||||||
CP_IDLE = 0x5
|
CP_IDLE = 0x5
|
||||||
CP_INTR = 0x4
|
CP_INTR = 0x4
|
||||||
@ -170,7 +187,65 @@ const (
|
|||||||
CTL_KERN = 0x1
|
CTL_KERN = 0x1
|
||||||
CTL_MAXNAME = 0xc
|
CTL_MAXNAME = 0xc
|
||||||
CTL_NET = 0x4
|
CTL_NET = 0x4
|
||||||
|
DIOCADDQUEUE = 0xc100445d
|
||||||
|
DIOCADDRULE = 0xccc84404
|
||||||
|
DIOCADDSTATE = 0xc1084425
|
||||||
|
DIOCCHANGERULE = 0xccc8441a
|
||||||
|
DIOCCLRIFFLAG = 0xc024445a
|
||||||
|
DIOCCLRSRCNODES = 0x20004455
|
||||||
|
DIOCCLRSTATES = 0xc0d04412
|
||||||
|
DIOCCLRSTATUS = 0xc0244416
|
||||||
|
DIOCGETLIMIT = 0xc0084427
|
||||||
|
DIOCGETQSTATS = 0xc1084460
|
||||||
|
DIOCGETQUEUE = 0xc100445f
|
||||||
|
DIOCGETQUEUES = 0xc100445e
|
||||||
|
DIOCGETRULE = 0xccc84407
|
||||||
|
DIOCGETRULES = 0xccc84406
|
||||||
|
DIOCGETRULESET = 0xc444443b
|
||||||
|
DIOCGETRULESETS = 0xc444443a
|
||||||
|
DIOCGETSRCNODES = 0xc0084454
|
||||||
|
DIOCGETSTATE = 0xc1084413
|
||||||
|
DIOCGETSTATES = 0xc0084419
|
||||||
|
DIOCGETSTATUS = 0xc1e84415
|
||||||
|
DIOCGETSYNFLWATS = 0xc0084463
|
||||||
|
DIOCGETTIMEOUT = 0xc008441e
|
||||||
|
DIOCIGETIFACES = 0xc0244457
|
||||||
|
DIOCKILLSRCNODES = 0xc068445b
|
||||||
|
DIOCKILLSTATES = 0xc0d04429
|
||||||
|
DIOCNATLOOK = 0xc0504417
|
||||||
|
DIOCOSFPADD = 0xc084444f
|
||||||
DIOCOSFPFLUSH = 0x2000444e
|
DIOCOSFPFLUSH = 0x2000444e
|
||||||
|
DIOCOSFPGET = 0xc0844450
|
||||||
|
DIOCRADDADDRS = 0xc44c4443
|
||||||
|
DIOCRADDTABLES = 0xc44c443d
|
||||||
|
DIOCRCLRADDRS = 0xc44c4442
|
||||||
|
DIOCRCLRASTATS = 0xc44c4448
|
||||||
|
DIOCRCLRTABLES = 0xc44c443c
|
||||||
|
DIOCRCLRTSTATS = 0xc44c4441
|
||||||
|
DIOCRDELADDRS = 0xc44c4444
|
||||||
|
DIOCRDELTABLES = 0xc44c443e
|
||||||
|
DIOCRGETADDRS = 0xc44c4446
|
||||||
|
DIOCRGETASTATS = 0xc44c4447
|
||||||
|
DIOCRGETTABLES = 0xc44c443f
|
||||||
|
DIOCRGETTSTATS = 0xc44c4440
|
||||||
|
DIOCRINADEFINE = 0xc44c444d
|
||||||
|
DIOCRSETADDRS = 0xc44c4445
|
||||||
|
DIOCRSETTFLAGS = 0xc44c444a
|
||||||
|
DIOCRTSTADDRS = 0xc44c4449
|
||||||
|
DIOCSETDEBUG = 0xc0044418
|
||||||
|
DIOCSETHOSTID = 0xc0044456
|
||||||
|
DIOCSETIFFLAG = 0xc0244459
|
||||||
|
DIOCSETLIMIT = 0xc0084428
|
||||||
|
DIOCSETREASS = 0xc004445c
|
||||||
|
DIOCSETSTATUSIF = 0xc0244414
|
||||||
|
DIOCSETSYNCOOKIES = 0xc0014462
|
||||||
|
DIOCSETSYNFLWATS = 0xc0084461
|
||||||
|
DIOCSETTIMEOUT = 0xc008441d
|
||||||
|
DIOCSTART = 0x20004401
|
||||||
|
DIOCSTOP = 0x20004402
|
||||||
|
DIOCXBEGIN = 0xc00c4451
|
||||||
|
DIOCXCOMMIT = 0xc00c4452
|
||||||
|
DIOCXROLLBACK = 0xc00c4453
|
||||||
DLT_ARCNET = 0x7
|
DLT_ARCNET = 0x7
|
||||||
DLT_ATM_RFC1483 = 0xb
|
DLT_ATM_RFC1483 = 0xb
|
||||||
DLT_AX25 = 0x3
|
DLT_AX25 = 0x3
|
||||||
@ -186,6 +261,7 @@ const (
|
|||||||
DLT_LOOP = 0xc
|
DLT_LOOP = 0xc
|
||||||
DLT_MPLS = 0xdb
|
DLT_MPLS = 0xdb
|
||||||
DLT_NULL = 0x0
|
DLT_NULL = 0x0
|
||||||
|
DLT_OPENFLOW = 0x10b
|
||||||
DLT_PFLOG = 0x75
|
DLT_PFLOG = 0x75
|
||||||
DLT_PFSYNC = 0x12
|
DLT_PFSYNC = 0x12
|
||||||
DLT_PPP = 0x9
|
DLT_PPP = 0x9
|
||||||
@ -196,6 +272,23 @@ const (
|
|||||||
DLT_RAW = 0xe
|
DLT_RAW = 0xe
|
||||||
DLT_SLIP = 0x8
|
DLT_SLIP = 0x8
|
||||||
DLT_SLIP_BSDOS = 0xf
|
DLT_SLIP_BSDOS = 0xf
|
||||||
|
DLT_USBPCAP = 0xf9
|
||||||
|
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
|
||||||
DT_BLK = 0x6
|
DT_BLK = 0x6
|
||||||
DT_CHR = 0x2
|
DT_CHR = 0x2
|
||||||
DT_DIR = 0x4
|
DT_DIR = 0x4
|
||||||
@ -215,6 +308,8 @@ const (
|
|||||||
EMUL_ENABLED = 0x1
|
EMUL_ENABLED = 0x1
|
||||||
EMUL_NATIVE = 0x2
|
EMUL_NATIVE = 0x2
|
||||||
ENDRUNDISC = 0x9
|
ENDRUNDISC = 0x9
|
||||||
|
ETH64_8021_RSVD_MASK = 0xfffffffffff0
|
||||||
|
ETH64_8021_RSVD_PREFIX = 0x180c2000000
|
||||||
ETHERMIN = 0x2e
|
ETHERMIN = 0x2e
|
||||||
ETHERMTU = 0x5dc
|
ETHERMTU = 0x5dc
|
||||||
ETHERTYPE_8023 = 0x4
|
ETHERTYPE_8023 = 0x4
|
||||||
@ -267,6 +362,7 @@ const (
|
|||||||
ETHERTYPE_DN = 0x6003
|
ETHERTYPE_DN = 0x6003
|
||||||
ETHERTYPE_DOGFIGHT = 0x1989
|
ETHERTYPE_DOGFIGHT = 0x1989
|
||||||
ETHERTYPE_DSMD = 0x8039
|
ETHERTYPE_DSMD = 0x8039
|
||||||
|
ETHERTYPE_EAPOL = 0x888e
|
||||||
ETHERTYPE_ECMA = 0x803
|
ETHERTYPE_ECMA = 0x803
|
||||||
ETHERTYPE_ENCRYPT = 0x803d
|
ETHERTYPE_ENCRYPT = 0x803d
|
||||||
ETHERTYPE_ES = 0x805d
|
ETHERTYPE_ES = 0x805d
|
||||||
@ -298,6 +394,7 @@ const (
|
|||||||
ETHERTYPE_LLDP = 0x88cc
|
ETHERTYPE_LLDP = 0x88cc
|
||||||
ETHERTYPE_LOGICRAFT = 0x8148
|
ETHERTYPE_LOGICRAFT = 0x8148
|
||||||
ETHERTYPE_LOOPBACK = 0x9000
|
ETHERTYPE_LOOPBACK = 0x9000
|
||||||
|
ETHERTYPE_MACSEC = 0x88e5
|
||||||
ETHERTYPE_MATRA = 0x807a
|
ETHERTYPE_MATRA = 0x807a
|
||||||
ETHERTYPE_MAX = 0xffff
|
ETHERTYPE_MAX = 0xffff
|
||||||
ETHERTYPE_MERIT = 0x807c
|
ETHERTYPE_MERIT = 0x807c
|
||||||
@ -326,15 +423,17 @@ const (
|
|||||||
ETHERTYPE_NCD = 0x8149
|
ETHERTYPE_NCD = 0x8149
|
||||||
ETHERTYPE_NESTAR = 0x8006
|
ETHERTYPE_NESTAR = 0x8006
|
||||||
ETHERTYPE_NETBEUI = 0x8191
|
ETHERTYPE_NETBEUI = 0x8191
|
||||||
|
ETHERTYPE_NHRP = 0x2001
|
||||||
ETHERTYPE_NOVELL = 0x8138
|
ETHERTYPE_NOVELL = 0x8138
|
||||||
ETHERTYPE_NS = 0x600
|
ETHERTYPE_NS = 0x600
|
||||||
ETHERTYPE_NSAT = 0x601
|
ETHERTYPE_NSAT = 0x601
|
||||||
ETHERTYPE_NSCOMPAT = 0x807
|
ETHERTYPE_NSCOMPAT = 0x807
|
||||||
|
ETHERTYPE_NSH = 0x984f
|
||||||
ETHERTYPE_NTRAILER = 0x10
|
ETHERTYPE_NTRAILER = 0x10
|
||||||
ETHERTYPE_OS9 = 0x7007
|
ETHERTYPE_OS9 = 0x7007
|
||||||
ETHERTYPE_OS9NET = 0x7009
|
ETHERTYPE_OS9NET = 0x7009
|
||||||
ETHERTYPE_PACER = 0x80c6
|
ETHERTYPE_PACER = 0x80c6
|
||||||
ETHERTYPE_PAE = 0x888e
|
ETHERTYPE_PBB = 0x88e7
|
||||||
ETHERTYPE_PCS = 0x4242
|
ETHERTYPE_PCS = 0x4242
|
||||||
ETHERTYPE_PLANNING = 0x8044
|
ETHERTYPE_PLANNING = 0x8044
|
||||||
ETHERTYPE_PPP = 0x880b
|
ETHERTYPE_PPP = 0x880b
|
||||||
@ -409,28 +508,40 @@ const (
|
|||||||
ETHER_CRC_POLY_LE = 0xedb88320
|
ETHER_CRC_POLY_LE = 0xedb88320
|
||||||
ETHER_HDR_LEN = 0xe
|
ETHER_HDR_LEN = 0xe
|
||||||
ETHER_MAX_DIX_LEN = 0x600
|
ETHER_MAX_DIX_LEN = 0x600
|
||||||
|
ETHER_MAX_HARDMTU_LEN = 0xff9b
|
||||||
ETHER_MAX_LEN = 0x5ee
|
ETHER_MAX_LEN = 0x5ee
|
||||||
ETHER_MIN_LEN = 0x40
|
ETHER_MIN_LEN = 0x40
|
||||||
ETHER_TYPE_LEN = 0x2
|
ETHER_TYPE_LEN = 0x2
|
||||||
ETHER_VLAN_ENCAP_LEN = 0x4
|
ETHER_VLAN_ENCAP_LEN = 0x4
|
||||||
EVFILT_AIO = -0x3
|
EVFILT_AIO = -0x3
|
||||||
|
EVFILT_DEVICE = -0x8
|
||||||
|
EVFILT_EXCEPT = -0x9
|
||||||
EVFILT_PROC = -0x5
|
EVFILT_PROC = -0x5
|
||||||
EVFILT_READ = -0x1
|
EVFILT_READ = -0x1
|
||||||
EVFILT_SIGNAL = -0x6
|
EVFILT_SIGNAL = -0x6
|
||||||
EVFILT_SYSCOUNT = 0x7
|
EVFILT_SYSCOUNT = 0x9
|
||||||
EVFILT_TIMER = -0x7
|
EVFILT_TIMER = -0x7
|
||||||
EVFILT_VNODE = -0x4
|
EVFILT_VNODE = -0x4
|
||||||
EVFILT_WRITE = -0x2
|
EVFILT_WRITE = -0x2
|
||||||
|
EVL_ENCAPLEN = 0x4
|
||||||
|
EVL_PRIO_BITS = 0xd
|
||||||
|
EVL_PRIO_MAX = 0x7
|
||||||
|
EVL_VLID_MASK = 0xfff
|
||||||
|
EVL_VLID_MAX = 0xffe
|
||||||
|
EVL_VLID_MIN = 0x1
|
||||||
|
EVL_VLID_NULL = 0x0
|
||||||
EV_ADD = 0x1
|
EV_ADD = 0x1
|
||||||
EV_CLEAR = 0x20
|
EV_CLEAR = 0x20
|
||||||
EV_DELETE = 0x2
|
EV_DELETE = 0x2
|
||||||
EV_DISABLE = 0x8
|
EV_DISABLE = 0x8
|
||||||
|
EV_DISPATCH = 0x80
|
||||||
EV_ENABLE = 0x4
|
EV_ENABLE = 0x4
|
||||||
EV_EOF = 0x8000
|
EV_EOF = 0x8000
|
||||||
EV_ERROR = 0x4000
|
EV_ERROR = 0x4000
|
||||||
EV_FLAG1 = 0x2000
|
EV_FLAG1 = 0x2000
|
||||||
EV_ONESHOT = 0x10
|
EV_ONESHOT = 0x10
|
||||||
EV_SYSFLAGS = 0xf000
|
EV_RECEIPT = 0x40
|
||||||
|
EV_SYSFLAGS = 0xf800
|
||||||
EXTA = 0x4b00
|
EXTA = 0x4b00
|
||||||
EXTB = 0x9600
|
EXTB = 0x9600
|
||||||
EXTPROC = 0x800
|
EXTPROC = 0x800
|
||||||
@ -443,6 +554,7 @@ const (
|
|||||||
F_GETFL = 0x3
|
F_GETFL = 0x3
|
||||||
F_GETLK = 0x7
|
F_GETLK = 0x7
|
||||||
F_GETOWN = 0x5
|
F_GETOWN = 0x5
|
||||||
|
F_ISATTY = 0xb
|
||||||
F_OK = 0x0
|
F_OK = 0x0
|
||||||
F_RDLCK = 0x1
|
F_RDLCK = 0x1
|
||||||
F_SETFD = 0x2
|
F_SETFD = 0x2
|
||||||
@ -460,7 +572,6 @@ const (
|
|||||||
IEXTEN = 0x400
|
IEXTEN = 0x400
|
||||||
IFAN_ARRIVAL = 0x0
|
IFAN_ARRIVAL = 0x0
|
||||||
IFAN_DEPARTURE = 0x1
|
IFAN_DEPARTURE = 0x1
|
||||||
IFA_ROUTE = 0x1
|
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_BROADCAST = 0x2
|
IFF_BROADCAST = 0x2
|
||||||
IFF_CANTCHANGE = 0x8e52
|
IFF_CANTCHANGE = 0x8e52
|
||||||
@ -471,12 +582,12 @@ const (
|
|||||||
IFF_LOOPBACK = 0x8
|
IFF_LOOPBACK = 0x8
|
||||||
IFF_MULTICAST = 0x8000
|
IFF_MULTICAST = 0x8000
|
||||||
IFF_NOARP = 0x80
|
IFF_NOARP = 0x80
|
||||||
IFF_NOTRAILERS = 0x20
|
|
||||||
IFF_OACTIVE = 0x400
|
IFF_OACTIVE = 0x400
|
||||||
IFF_POINTOPOINT = 0x10
|
IFF_POINTOPOINT = 0x10
|
||||||
IFF_PROMISC = 0x100
|
IFF_PROMISC = 0x100
|
||||||
IFF_RUNNING = 0x40
|
IFF_RUNNING = 0x40
|
||||||
IFF_SIMPLEX = 0x800
|
IFF_SIMPLEX = 0x800
|
||||||
|
IFF_STATICARP = 0x20
|
||||||
IFF_UP = 0x1
|
IFF_UP = 0x1
|
||||||
IFNAMSIZ = 0x10
|
IFNAMSIZ = 0x10
|
||||||
IFT_1822 = 0x2
|
IFT_1822 = 0x2
|
||||||
@ -605,6 +716,7 @@ const (
|
|||||||
IFT_LINEGROUP = 0xd2
|
IFT_LINEGROUP = 0xd2
|
||||||
IFT_LOCALTALK = 0x2a
|
IFT_LOCALTALK = 0x2a
|
||||||
IFT_LOOP = 0x18
|
IFT_LOOP = 0x18
|
||||||
|
IFT_MBIM = 0xfa
|
||||||
IFT_MEDIAMAILOVERIP = 0x8b
|
IFT_MEDIAMAILOVERIP = 0x8b
|
||||||
IFT_MFSIGLINK = 0xa7
|
IFT_MFSIGLINK = 0xa7
|
||||||
IFT_MIOX25 = 0x26
|
IFT_MIOX25 = 0x26
|
||||||
@ -695,6 +807,7 @@ const (
|
|||||||
IFT_VOICEOVERCABLE = 0xc6
|
IFT_VOICEOVERCABLE = 0xc6
|
||||||
IFT_VOICEOVERFRAMERELAY = 0x99
|
IFT_VOICEOVERFRAMERELAY = 0x99
|
||||||
IFT_VOICEOVERIP = 0x68
|
IFT_VOICEOVERIP = 0x68
|
||||||
|
IFT_WIREGUARD = 0xfb
|
||||||
IFT_X213 = 0x5d
|
IFT_X213 = 0x5d
|
||||||
IFT_X25 = 0x5
|
IFT_X25 = 0x5
|
||||||
IFT_X25DDN = 0x4
|
IFT_X25DDN = 0x4
|
||||||
@ -729,8 +842,6 @@ const (
|
|||||||
IPPROTO_AH = 0x33
|
IPPROTO_AH = 0x33
|
||||||
IPPROTO_CARP = 0x70
|
IPPROTO_CARP = 0x70
|
||||||
IPPROTO_DIVERT = 0x102
|
IPPROTO_DIVERT = 0x102
|
||||||
IPPROTO_DIVERT_INIT = 0x2
|
|
||||||
IPPROTO_DIVERT_RESP = 0x1
|
|
||||||
IPPROTO_DONE = 0x101
|
IPPROTO_DONE = 0x101
|
||||||
IPPROTO_DSTOPTS = 0x3c
|
IPPROTO_DSTOPTS = 0x3c
|
||||||
IPPROTO_EGP = 0x8
|
IPPROTO_EGP = 0x8
|
||||||
@ -762,9 +873,11 @@ const (
|
|||||||
IPPROTO_RAW = 0xff
|
IPPROTO_RAW = 0xff
|
||||||
IPPROTO_ROUTING = 0x2b
|
IPPROTO_ROUTING = 0x2b
|
||||||
IPPROTO_RSVP = 0x2e
|
IPPROTO_RSVP = 0x2e
|
||||||
|
IPPROTO_SCTP = 0x84
|
||||||
IPPROTO_TCP = 0x6
|
IPPROTO_TCP = 0x6
|
||||||
IPPROTO_TP = 0x1d
|
IPPROTO_TP = 0x1d
|
||||||
IPPROTO_UDP = 0x11
|
IPPROTO_UDP = 0x11
|
||||||
|
IPPROTO_UDPLITE = 0x88
|
||||||
IPV6_AUTH_LEVEL = 0x35
|
IPV6_AUTH_LEVEL = 0x35
|
||||||
IPV6_AUTOFLOWLABEL = 0x3b
|
IPV6_AUTOFLOWLABEL = 0x3b
|
||||||
IPV6_CHECKSUM = 0x1a
|
IPV6_CHECKSUM = 0x1a
|
||||||
@ -787,6 +900,7 @@ const (
|
|||||||
IPV6_LEAVE_GROUP = 0xd
|
IPV6_LEAVE_GROUP = 0xd
|
||||||
IPV6_MAXHLIM = 0xff
|
IPV6_MAXHLIM = 0xff
|
||||||
IPV6_MAXPACKET = 0xffff
|
IPV6_MAXPACKET = 0xffff
|
||||||
|
IPV6_MINHOPCOUNT = 0x41
|
||||||
IPV6_MMTU = 0x500
|
IPV6_MMTU = 0x500
|
||||||
IPV6_MULTICAST_HOPS = 0xa
|
IPV6_MULTICAST_HOPS = 0xa
|
||||||
IPV6_MULTICAST_IF = 0x9
|
IPV6_MULTICAST_IF = 0x9
|
||||||
@ -826,12 +940,12 @@ const (
|
|||||||
IP_DEFAULT_MULTICAST_LOOP = 0x1
|
IP_DEFAULT_MULTICAST_LOOP = 0x1
|
||||||
IP_DEFAULT_MULTICAST_TTL = 0x1
|
IP_DEFAULT_MULTICAST_TTL = 0x1
|
||||||
IP_DF = 0x4000
|
IP_DF = 0x4000
|
||||||
IP_DIVERTFL = 0x1022
|
|
||||||
IP_DROP_MEMBERSHIP = 0xd
|
IP_DROP_MEMBERSHIP = 0xd
|
||||||
IP_ESP_NETWORK_LEVEL = 0x16
|
IP_ESP_NETWORK_LEVEL = 0x16
|
||||||
IP_ESP_TRANS_LEVEL = 0x15
|
IP_ESP_TRANS_LEVEL = 0x15
|
||||||
IP_HDRINCL = 0x2
|
IP_HDRINCL = 0x2
|
||||||
IP_IPCOMP_LEVEL = 0x1d
|
IP_IPCOMP_LEVEL = 0x1d
|
||||||
|
IP_IPDEFTTL = 0x25
|
||||||
IP_IPSECFLOWINFO = 0x24
|
IP_IPSECFLOWINFO = 0x24
|
||||||
IP_IPSEC_LOCAL_AUTH = 0x1b
|
IP_IPSEC_LOCAL_AUTH = 0x1b
|
||||||
IP_IPSEC_LOCAL_CRED = 0x19
|
IP_IPSEC_LOCAL_CRED = 0x19
|
||||||
@ -865,10 +979,15 @@ const (
|
|||||||
IP_RETOPTS = 0x8
|
IP_RETOPTS = 0x8
|
||||||
IP_RF = 0x8000
|
IP_RF = 0x8000
|
||||||
IP_RTABLE = 0x1021
|
IP_RTABLE = 0x1021
|
||||||
|
IP_SENDSRCADDR = 0x7
|
||||||
IP_TOS = 0x3
|
IP_TOS = 0x3
|
||||||
IP_TTL = 0x4
|
IP_TTL = 0x4
|
||||||
ISIG = 0x80
|
ISIG = 0x80
|
||||||
ISTRIP = 0x20
|
ISTRIP = 0x20
|
||||||
|
ITIMER_PROF = 0x2
|
||||||
|
ITIMER_REAL = 0x0
|
||||||
|
ITIMER_VIRTUAL = 0x1
|
||||||
|
IUCLC = 0x1000
|
||||||
IXANY = 0x800
|
IXANY = 0x800
|
||||||
IXOFF = 0x400
|
IXOFF = 0x400
|
||||||
IXON = 0x200
|
IXON = 0x200
|
||||||
@ -900,10 +1019,11 @@ const (
|
|||||||
MAP_INHERIT_COPY = 0x1
|
MAP_INHERIT_COPY = 0x1
|
||||||
MAP_INHERIT_NONE = 0x2
|
MAP_INHERIT_NONE = 0x2
|
||||||
MAP_INHERIT_SHARE = 0x0
|
MAP_INHERIT_SHARE = 0x0
|
||||||
MAP_NOEXTEND = 0x100
|
MAP_INHERIT_ZERO = 0x3
|
||||||
MAP_NORESERVE = 0x40
|
MAP_NOEXTEND = 0x0
|
||||||
|
MAP_NORESERVE = 0x0
|
||||||
MAP_PRIVATE = 0x2
|
MAP_PRIVATE = 0x2
|
||||||
MAP_RENAME = 0x20
|
MAP_RENAME = 0x0
|
||||||
MAP_SHARED = 0x1
|
MAP_SHARED = 0x1
|
||||||
MAP_STACK = 0x4000
|
MAP_STACK = 0x4000
|
||||||
MAP_TRYFIXED = 0x0
|
MAP_TRYFIXED = 0x0
|
||||||
@ -922,6 +1042,7 @@ const (
|
|||||||
MNT_NOATIME = 0x8000
|
MNT_NOATIME = 0x8000
|
||||||
MNT_NODEV = 0x10
|
MNT_NODEV = 0x10
|
||||||
MNT_NOEXEC = 0x4
|
MNT_NOEXEC = 0x4
|
||||||
|
MNT_NOPERM = 0x20
|
||||||
MNT_NOSUID = 0x8
|
MNT_NOSUID = 0x8
|
||||||
MNT_NOWAIT = 0x2
|
MNT_NOWAIT = 0x2
|
||||||
MNT_QUOTA = 0x2000
|
MNT_QUOTA = 0x2000
|
||||||
@ -929,13 +1050,29 @@ const (
|
|||||||
MNT_RELOAD = 0x40000
|
MNT_RELOAD = 0x40000
|
||||||
MNT_ROOTFS = 0x4000
|
MNT_ROOTFS = 0x4000
|
||||||
MNT_SOFTDEP = 0x4000000
|
MNT_SOFTDEP = 0x4000000
|
||||||
|
MNT_STALLED = 0x100000
|
||||||
|
MNT_SWAPPABLE = 0x200000
|
||||||
MNT_SYNCHRONOUS = 0x2
|
MNT_SYNCHRONOUS = 0x2
|
||||||
MNT_UPDATE = 0x10000
|
MNT_UPDATE = 0x10000
|
||||||
MNT_VISFLAGMASK = 0x400ffff
|
MNT_VISFLAGMASK = 0x400ffff
|
||||||
MNT_WAIT = 0x1
|
MNT_WAIT = 0x1
|
||||||
MNT_WANTRDWR = 0x2000000
|
MNT_WANTRDWR = 0x2000000
|
||||||
MNT_WXALLOWED = 0x800
|
MNT_WXALLOWED = 0x800
|
||||||
|
MOUNT_AFS = "afs"
|
||||||
|
MOUNT_CD9660 = "cd9660"
|
||||||
|
MOUNT_EXT2FS = "ext2fs"
|
||||||
|
MOUNT_FFS = "ffs"
|
||||||
|
MOUNT_FUSEFS = "fuse"
|
||||||
|
MOUNT_MFS = "mfs"
|
||||||
|
MOUNT_MSDOS = "msdos"
|
||||||
|
MOUNT_NCPFS = "ncpfs"
|
||||||
|
MOUNT_NFS = "nfs"
|
||||||
|
MOUNT_NTFS = "ntfs"
|
||||||
|
MOUNT_TMPFS = "tmpfs"
|
||||||
|
MOUNT_UDF = "udf"
|
||||||
|
MOUNT_UFS = "ffs"
|
||||||
MSG_BCAST = 0x100
|
MSG_BCAST = 0x100
|
||||||
|
MSG_CMSG_CLOEXEC = 0x800
|
||||||
MSG_CTRUNC = 0x20
|
MSG_CTRUNC = 0x20
|
||||||
MSG_DONTROUTE = 0x4
|
MSG_DONTROUTE = 0x4
|
||||||
MSG_DONTWAIT = 0x80
|
MSG_DONTWAIT = 0x80
|
||||||
@ -946,6 +1083,7 @@ const (
|
|||||||
MSG_PEEK = 0x2
|
MSG_PEEK = 0x2
|
||||||
MSG_TRUNC = 0x10
|
MSG_TRUNC = 0x10
|
||||||
MSG_WAITALL = 0x40
|
MSG_WAITALL = 0x40
|
||||||
|
MSG_WAITFORONE = 0x1000
|
||||||
MS_ASYNC = 0x1
|
MS_ASYNC = 0x1
|
||||||
MS_INVALIDATE = 0x4
|
MS_INVALIDATE = 0x4
|
||||||
MS_SYNC = 0x2
|
MS_SYNC = 0x2
|
||||||
@ -953,12 +1091,16 @@ const (
|
|||||||
NET_RT_DUMP = 0x1
|
NET_RT_DUMP = 0x1
|
||||||
NET_RT_FLAGS = 0x2
|
NET_RT_FLAGS = 0x2
|
||||||
NET_RT_IFLIST = 0x3
|
NET_RT_IFLIST = 0x3
|
||||||
NET_RT_MAXID = 0x6
|
NET_RT_IFNAMES = 0x6
|
||||||
|
NET_RT_MAXID = 0x8
|
||||||
|
NET_RT_SOURCE = 0x7
|
||||||
NET_RT_STATS = 0x4
|
NET_RT_STATS = 0x4
|
||||||
NET_RT_TABLE = 0x5
|
NET_RT_TABLE = 0x5
|
||||||
NFDBITS = 0x20
|
NFDBITS = 0x20
|
||||||
NOFLSH = 0x80000000
|
NOFLSH = 0x80000000
|
||||||
|
NOKERNINFO = 0x2000000
|
||||||
NOTE_ATTRIB = 0x8
|
NOTE_ATTRIB = 0x8
|
||||||
|
NOTE_CHANGE = 0x1
|
||||||
NOTE_CHILD = 0x4
|
NOTE_CHILD = 0x4
|
||||||
NOTE_DELETE = 0x1
|
NOTE_DELETE = 0x1
|
||||||
NOTE_EOF = 0x2
|
NOTE_EOF = 0x2
|
||||||
@ -968,6 +1110,7 @@ const (
|
|||||||
NOTE_FORK = 0x40000000
|
NOTE_FORK = 0x40000000
|
||||||
NOTE_LINK = 0x10
|
NOTE_LINK = 0x10
|
||||||
NOTE_LOWAT = 0x1
|
NOTE_LOWAT = 0x1
|
||||||
|
NOTE_OOB = 0x4
|
||||||
NOTE_PCTRLMASK = 0xf0000000
|
NOTE_PCTRLMASK = 0xf0000000
|
||||||
NOTE_PDATAMASK = 0xfffff
|
NOTE_PDATAMASK = 0xfffff
|
||||||
NOTE_RENAME = 0x20
|
NOTE_RENAME = 0x20
|
||||||
@ -977,11 +1120,13 @@ const (
|
|||||||
NOTE_TRUNCATE = 0x80
|
NOTE_TRUNCATE = 0x80
|
||||||
NOTE_WRITE = 0x2
|
NOTE_WRITE = 0x2
|
||||||
OCRNL = 0x10
|
OCRNL = 0x10
|
||||||
|
OLCUC = 0x20
|
||||||
ONLCR = 0x2
|
ONLCR = 0x2
|
||||||
ONLRET = 0x80
|
ONLRET = 0x80
|
||||||
ONOCR = 0x40
|
ONOCR = 0x40
|
||||||
ONOEOT = 0x8
|
ONOEOT = 0x8
|
||||||
OPOST = 0x1
|
OPOST = 0x1
|
||||||
|
OXTABS = 0x4
|
||||||
O_ACCMODE = 0x3
|
O_ACCMODE = 0x3
|
||||||
O_APPEND = 0x8
|
O_APPEND = 0x8
|
||||||
O_ASYNC = 0x40
|
O_ASYNC = 0x40
|
||||||
@ -1015,7 +1160,6 @@ const (
|
|||||||
PROT_NONE = 0x0
|
PROT_NONE = 0x0
|
||||||
PROT_READ = 0x1
|
PROT_READ = 0x1
|
||||||
PROT_WRITE = 0x2
|
PROT_WRITE = 0x2
|
||||||
PT_MASK = 0x3ff000
|
|
||||||
RLIMIT_CORE = 0x4
|
RLIMIT_CORE = 0x4
|
||||||
RLIMIT_CPU = 0x0
|
RLIMIT_CPU = 0x0
|
||||||
RLIMIT_DATA = 0x2
|
RLIMIT_DATA = 0x2
|
||||||
@ -1027,19 +1171,25 @@ const (
|
|||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = 0x7fffffffffffffff
|
RLIM_INFINITY = 0x7fffffffffffffff
|
||||||
RTAX_AUTHOR = 0x6
|
RTAX_AUTHOR = 0x6
|
||||||
|
RTAX_BFD = 0xb
|
||||||
RTAX_BRD = 0x7
|
RTAX_BRD = 0x7
|
||||||
|
RTAX_DNS = 0xc
|
||||||
RTAX_DST = 0x0
|
RTAX_DST = 0x0
|
||||||
RTAX_GATEWAY = 0x1
|
RTAX_GATEWAY = 0x1
|
||||||
RTAX_GENMASK = 0x3
|
RTAX_GENMASK = 0x3
|
||||||
RTAX_IFA = 0x5
|
RTAX_IFA = 0x5
|
||||||
RTAX_IFP = 0x4
|
RTAX_IFP = 0x4
|
||||||
RTAX_LABEL = 0xa
|
RTAX_LABEL = 0xa
|
||||||
RTAX_MAX = 0xb
|
RTAX_MAX = 0xf
|
||||||
RTAX_NETMASK = 0x2
|
RTAX_NETMASK = 0x2
|
||||||
|
RTAX_SEARCH = 0xe
|
||||||
RTAX_SRC = 0x8
|
RTAX_SRC = 0x8
|
||||||
RTAX_SRCMASK = 0x9
|
RTAX_SRCMASK = 0x9
|
||||||
|
RTAX_STATIC = 0xd
|
||||||
RTA_AUTHOR = 0x40
|
RTA_AUTHOR = 0x40
|
||||||
|
RTA_BFD = 0x800
|
||||||
RTA_BRD = 0x80
|
RTA_BRD = 0x80
|
||||||
|
RTA_DNS = 0x1000
|
||||||
RTA_DST = 0x1
|
RTA_DST = 0x1
|
||||||
RTA_GATEWAY = 0x2
|
RTA_GATEWAY = 0x2
|
||||||
RTA_GENMASK = 0x8
|
RTA_GENMASK = 0x8
|
||||||
@ -1047,49 +1197,57 @@ const (
|
|||||||
RTA_IFP = 0x10
|
RTA_IFP = 0x10
|
||||||
RTA_LABEL = 0x400
|
RTA_LABEL = 0x400
|
||||||
RTA_NETMASK = 0x4
|
RTA_NETMASK = 0x4
|
||||||
|
RTA_SEARCH = 0x4000
|
||||||
RTA_SRC = 0x100
|
RTA_SRC = 0x100
|
||||||
RTA_SRCMASK = 0x200
|
RTA_SRCMASK = 0x200
|
||||||
|
RTA_STATIC = 0x2000
|
||||||
RTF_ANNOUNCE = 0x4000
|
RTF_ANNOUNCE = 0x4000
|
||||||
|
RTF_BFD = 0x1000000
|
||||||
RTF_BLACKHOLE = 0x1000
|
RTF_BLACKHOLE = 0x1000
|
||||||
|
RTF_BROADCAST = 0x400000
|
||||||
|
RTF_CACHED = 0x20000
|
||||||
RTF_CLONED = 0x10000
|
RTF_CLONED = 0x10000
|
||||||
RTF_CLONING = 0x100
|
RTF_CLONING = 0x100
|
||||||
|
RTF_CONNECTED = 0x800000
|
||||||
RTF_DONE = 0x40
|
RTF_DONE = 0x40
|
||||||
RTF_DYNAMIC = 0x10
|
RTF_DYNAMIC = 0x10
|
||||||
RTF_FMASK = 0x10f808
|
RTF_FMASK = 0x110fc08
|
||||||
RTF_GATEWAY = 0x2
|
RTF_GATEWAY = 0x2
|
||||||
RTF_HOST = 0x4
|
RTF_HOST = 0x4
|
||||||
RTF_LLINFO = 0x400
|
RTF_LLINFO = 0x400
|
||||||
RTF_MASK = 0x80
|
RTF_LOCAL = 0x200000
|
||||||
RTF_MODIFIED = 0x20
|
RTF_MODIFIED = 0x20
|
||||||
RTF_MPATH = 0x40000
|
RTF_MPATH = 0x40000
|
||||||
RTF_MPLS = 0x100000
|
RTF_MPLS = 0x100000
|
||||||
|
RTF_MULTICAST = 0x200
|
||||||
RTF_PERMANENT_ARP = 0x2000
|
RTF_PERMANENT_ARP = 0x2000
|
||||||
RTF_PROTO1 = 0x8000
|
RTF_PROTO1 = 0x8000
|
||||||
RTF_PROTO2 = 0x4000
|
RTF_PROTO2 = 0x4000
|
||||||
RTF_PROTO3 = 0x2000
|
RTF_PROTO3 = 0x2000
|
||||||
RTF_REJECT = 0x8
|
RTF_REJECT = 0x8
|
||||||
RTF_SOURCE = 0x20000
|
|
||||||
RTF_STATIC = 0x800
|
RTF_STATIC = 0x800
|
||||||
RTF_TUNNEL = 0x100000
|
|
||||||
RTF_UP = 0x1
|
RTF_UP = 0x1
|
||||||
RTF_USETRAILERS = 0x8000
|
RTF_USETRAILERS = 0x8000
|
||||||
RTF_XRESOLVE = 0x200
|
RTM_80211INFO = 0x15
|
||||||
RTM_ADD = 0x1
|
RTM_ADD = 0x1
|
||||||
|
RTM_BFD = 0x12
|
||||||
RTM_CHANGE = 0x3
|
RTM_CHANGE = 0x3
|
||||||
|
RTM_CHGADDRATTR = 0x14
|
||||||
RTM_DELADDR = 0xd
|
RTM_DELADDR = 0xd
|
||||||
RTM_DELETE = 0x2
|
RTM_DELETE = 0x2
|
||||||
RTM_DESYNC = 0x10
|
RTM_DESYNC = 0x10
|
||||||
RTM_GET = 0x4
|
RTM_GET = 0x4
|
||||||
RTM_IFANNOUNCE = 0xf
|
RTM_IFANNOUNCE = 0xf
|
||||||
RTM_IFINFO = 0xe
|
RTM_IFINFO = 0xe
|
||||||
RTM_LOCK = 0x8
|
RTM_INVALIDATE = 0x11
|
||||||
RTM_LOSING = 0x5
|
RTM_LOSING = 0x5
|
||||||
RTM_MAXSIZE = 0x800
|
RTM_MAXSIZE = 0x800
|
||||||
RTM_MISS = 0x7
|
RTM_MISS = 0x7
|
||||||
RTM_NEWADDR = 0xc
|
RTM_NEWADDR = 0xc
|
||||||
|
RTM_PROPOSAL = 0x13
|
||||||
RTM_REDIRECT = 0x6
|
RTM_REDIRECT = 0x6
|
||||||
RTM_RESOLVE = 0xb
|
RTM_RESOLVE = 0xb
|
||||||
RTM_RTTUNIT = 0xf4240
|
RTM_SOURCE = 0x16
|
||||||
RTM_VERSION = 0x5
|
RTM_VERSION = 0x5
|
||||||
RTV_EXPIRE = 0x4
|
RTV_EXPIRE = 0x4
|
||||||
RTV_HOPCOUNT = 0x2
|
RTV_HOPCOUNT = 0x2
|
||||||
@ -1099,67 +1257,74 @@ const (
|
|||||||
RTV_RTTVAR = 0x80
|
RTV_RTTVAR = 0x80
|
||||||
RTV_SPIPE = 0x10
|
RTV_SPIPE = 0x10
|
||||||
RTV_SSTHRESH = 0x20
|
RTV_SSTHRESH = 0x20
|
||||||
|
RT_TABLEID_BITS = 0x8
|
||||||
|
RT_TABLEID_MASK = 0xff
|
||||||
RT_TABLEID_MAX = 0xff
|
RT_TABLEID_MAX = 0xff
|
||||||
RUSAGE_CHILDREN = -0x1
|
RUSAGE_CHILDREN = -0x1
|
||||||
RUSAGE_SELF = 0x0
|
RUSAGE_SELF = 0x0
|
||||||
RUSAGE_THREAD = 0x1
|
RUSAGE_THREAD = 0x1
|
||||||
SCM_RIGHTS = 0x1
|
SCM_RIGHTS = 0x1
|
||||||
SCM_TIMESTAMP = 0x4
|
SCM_TIMESTAMP = 0x4
|
||||||
|
SEEK_CUR = 0x1
|
||||||
|
SEEK_END = 0x2
|
||||||
|
SEEK_SET = 0x0
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
SIOCADDMULTI = 0x80206931
|
SIOCADDMULTI = 0x80206931
|
||||||
SIOCAIFADDR = 0x8040691a
|
SIOCAIFADDR = 0x8040691a
|
||||||
SIOCAIFGROUP = 0x80246987
|
SIOCAIFGROUP = 0x80246987
|
||||||
SIOCALIFADDR = 0x8218691c
|
|
||||||
SIOCATMARK = 0x40047307
|
SIOCATMARK = 0x40047307
|
||||||
SIOCBRDGADD = 0x8054693c
|
SIOCBRDGADD = 0x805c693c
|
||||||
SIOCBRDGADDS = 0x80546941
|
SIOCBRDGADDL = 0x805c6949
|
||||||
SIOCBRDGARL = 0x806e694d
|
SIOCBRDGADDS = 0x805c6941
|
||||||
|
SIOCBRDGARL = 0x808c694d
|
||||||
SIOCBRDGDADDR = 0x81286947
|
SIOCBRDGDADDR = 0x81286947
|
||||||
SIOCBRDGDEL = 0x8054693d
|
SIOCBRDGDEL = 0x805c693d
|
||||||
SIOCBRDGDELS = 0x80546942
|
SIOCBRDGDELS = 0x805c6942
|
||||||
SIOCBRDGFLUSH = 0x80546948
|
SIOCBRDGFLUSH = 0x805c6948
|
||||||
SIOCBRDGFRL = 0x806e694e
|
SIOCBRDGFRL = 0x808c694e
|
||||||
SIOCBRDGGCACHE = 0xc0146941
|
SIOCBRDGGCACHE = 0xc0146941
|
||||||
SIOCBRDGGFD = 0xc0146952
|
SIOCBRDGGFD = 0xc0146952
|
||||||
SIOCBRDGGHT = 0xc0146951
|
SIOCBRDGGHT = 0xc0146951
|
||||||
SIOCBRDGGIFFLGS = 0xc054693e
|
SIOCBRDGGIFFLGS = 0xc05c693e
|
||||||
SIOCBRDGGMA = 0xc0146953
|
SIOCBRDGGMA = 0xc0146953
|
||||||
SIOCBRDGGPARAM = 0xc03c6958
|
SIOCBRDGGPARAM = 0xc03c6958
|
||||||
SIOCBRDGGPRI = 0xc0146950
|
SIOCBRDGGPRI = 0xc0146950
|
||||||
SIOCBRDGGRL = 0xc028694f
|
SIOCBRDGGRL = 0xc028694f
|
||||||
SIOCBRDGGSIFS = 0xc054693c
|
|
||||||
SIOCBRDGGTO = 0xc0146946
|
SIOCBRDGGTO = 0xc0146946
|
||||||
SIOCBRDGIFS = 0xc0546942
|
SIOCBRDGIFS = 0xc05c6942
|
||||||
SIOCBRDGRTS = 0xc0186943
|
SIOCBRDGRTS = 0xc0186943
|
||||||
SIOCBRDGSADDR = 0xc1286944
|
SIOCBRDGSADDR = 0xc1286944
|
||||||
SIOCBRDGSCACHE = 0x80146940
|
SIOCBRDGSCACHE = 0x80146940
|
||||||
SIOCBRDGSFD = 0x80146952
|
SIOCBRDGSFD = 0x80146952
|
||||||
SIOCBRDGSHT = 0x80146951
|
SIOCBRDGSHT = 0x80146951
|
||||||
SIOCBRDGSIFCOST = 0x80546955
|
SIOCBRDGSIFCOST = 0x805c6955
|
||||||
SIOCBRDGSIFFLGS = 0x8054693f
|
SIOCBRDGSIFFLGS = 0x805c693f
|
||||||
SIOCBRDGSIFPRIO = 0x80546954
|
SIOCBRDGSIFPRIO = 0x805c6954
|
||||||
|
SIOCBRDGSIFPROT = 0x805c694a
|
||||||
SIOCBRDGSMA = 0x80146953
|
SIOCBRDGSMA = 0x80146953
|
||||||
SIOCBRDGSPRI = 0x80146950
|
SIOCBRDGSPRI = 0x80146950
|
||||||
SIOCBRDGSPROTO = 0x8014695a
|
SIOCBRDGSPROTO = 0x8014695a
|
||||||
SIOCBRDGSTO = 0x80146945
|
SIOCBRDGSTO = 0x80146945
|
||||||
SIOCBRDGSTXHC = 0x80146959
|
SIOCBRDGSTXHC = 0x80146959
|
||||||
|
SIOCDELLABEL = 0x80206997
|
||||||
SIOCDELMULTI = 0x80206932
|
SIOCDELMULTI = 0x80206932
|
||||||
SIOCDIFADDR = 0x80206919
|
SIOCDIFADDR = 0x80206919
|
||||||
SIOCDIFGROUP = 0x80246989
|
SIOCDIFGROUP = 0x80246989
|
||||||
|
SIOCDIFPARENT = 0x802069b4
|
||||||
SIOCDIFPHYADDR = 0x80206949
|
SIOCDIFPHYADDR = 0x80206949
|
||||||
SIOCDLIFADDR = 0x8218691e
|
SIOCDPWE3NEIGHBOR = 0x802069de
|
||||||
|
SIOCDVNETID = 0x802069af
|
||||||
SIOCGETKALIVE = 0xc01869a4
|
SIOCGETKALIVE = 0xc01869a4
|
||||||
SIOCGETLABEL = 0x8020699a
|
SIOCGETLABEL = 0x8020699a
|
||||||
|
SIOCGETMPWCFG = 0xc02069ae
|
||||||
SIOCGETPFLOW = 0xc02069fe
|
SIOCGETPFLOW = 0xc02069fe
|
||||||
SIOCGETPFSYNC = 0xc02069f8
|
SIOCGETPFSYNC = 0xc02069f8
|
||||||
SIOCGETSGCNT = 0xc0147534
|
SIOCGETSGCNT = 0xc0147534
|
||||||
SIOCGETVIFCNT = 0xc0147533
|
SIOCGETVIFCNT = 0xc0147533
|
||||||
SIOCGETVLAN = 0xc0206990
|
SIOCGETVLAN = 0xc0206990
|
||||||
SIOCGHIWAT = 0x40047301
|
|
||||||
SIOCGIFADDR = 0xc0206921
|
SIOCGIFADDR = 0xc0206921
|
||||||
SIOCGIFASYNCMAP = 0xc020697c
|
|
||||||
SIOCGIFBRDADDR = 0xc0206923
|
SIOCGIFBRDADDR = 0xc0206923
|
||||||
SIOCGIFCONF = 0xc0086924
|
SIOCGIFCONF = 0xc0086924
|
||||||
SIOCGIFDATA = 0xc020691b
|
SIOCGIFDATA = 0xc020691b
|
||||||
@ -1168,40 +1333,53 @@ const (
|
|||||||
SIOCGIFFLAGS = 0xc0206911
|
SIOCGIFFLAGS = 0xc0206911
|
||||||
SIOCGIFGATTR = 0xc024698b
|
SIOCGIFGATTR = 0xc024698b
|
||||||
SIOCGIFGENERIC = 0xc020693a
|
SIOCGIFGENERIC = 0xc020693a
|
||||||
|
SIOCGIFGLIST = 0xc024698d
|
||||||
SIOCGIFGMEMB = 0xc024698a
|
SIOCGIFGMEMB = 0xc024698a
|
||||||
SIOCGIFGROUP = 0xc0246988
|
SIOCGIFGROUP = 0xc0246988
|
||||||
SIOCGIFHARDMTU = 0xc02069a5
|
SIOCGIFHARDMTU = 0xc02069a5
|
||||||
SIOCGIFMEDIA = 0xc0286936
|
SIOCGIFLLPRIO = 0xc02069b6
|
||||||
|
SIOCGIFMEDIA = 0xc0386938
|
||||||
SIOCGIFMETRIC = 0xc0206917
|
SIOCGIFMETRIC = 0xc0206917
|
||||||
SIOCGIFMTU = 0xc020697e
|
SIOCGIFMTU = 0xc020697e
|
||||||
SIOCGIFNETMASK = 0xc0206925
|
SIOCGIFNETMASK = 0xc0206925
|
||||||
SIOCGIFPDSTADDR = 0xc0206948
|
SIOCGIFPAIR = 0xc02069b1
|
||||||
|
SIOCGIFPARENT = 0xc02069b3
|
||||||
SIOCGIFPRIORITY = 0xc020699c
|
SIOCGIFPRIORITY = 0xc020699c
|
||||||
SIOCGIFPSRCADDR = 0xc0206947
|
|
||||||
SIOCGIFRDOMAIN = 0xc02069a0
|
SIOCGIFRDOMAIN = 0xc02069a0
|
||||||
SIOCGIFRTLABEL = 0xc0206983
|
SIOCGIFRTLABEL = 0xc0206983
|
||||||
SIOCGIFTIMESLOT = 0xc0206986
|
SIOCGIFRXR = 0x802069aa
|
||||||
|
SIOCGIFSFFPAGE = 0xc1126939
|
||||||
SIOCGIFXFLAGS = 0xc020699e
|
SIOCGIFXFLAGS = 0xc020699e
|
||||||
SIOCGLIFADDR = 0xc218691d
|
|
||||||
SIOCGLIFPHYADDR = 0xc218694b
|
SIOCGLIFPHYADDR = 0xc218694b
|
||||||
|
SIOCGLIFPHYDF = 0xc02069c2
|
||||||
|
SIOCGLIFPHYECN = 0xc02069c8
|
||||||
SIOCGLIFPHYRTABLE = 0xc02069a2
|
SIOCGLIFPHYRTABLE = 0xc02069a2
|
||||||
SIOCGLIFPHYTTL = 0xc02069a9
|
SIOCGLIFPHYTTL = 0xc02069a9
|
||||||
SIOCGLOWAT = 0x40047303
|
|
||||||
SIOCGPGRP = 0x40047309
|
SIOCGPGRP = 0x40047309
|
||||||
|
SIOCGPWE3 = 0xc0206998
|
||||||
|
SIOCGPWE3CTRLWORD = 0xc02069dc
|
||||||
|
SIOCGPWE3FAT = 0xc02069dd
|
||||||
|
SIOCGPWE3NEIGHBOR = 0xc21869de
|
||||||
|
SIOCGRXHPRIO = 0xc02069db
|
||||||
SIOCGSPPPPARAMS = 0xc0206994
|
SIOCGSPPPPARAMS = 0xc0206994
|
||||||
|
SIOCGTXHPRIO = 0xc02069c6
|
||||||
|
SIOCGUMBINFO = 0xc02069be
|
||||||
|
SIOCGUMBPARAM = 0xc02069c0
|
||||||
SIOCGVH = 0xc02069f6
|
SIOCGVH = 0xc02069f6
|
||||||
|
SIOCGVNETFLOWID = 0xc02069c4
|
||||||
SIOCGVNETID = 0xc02069a7
|
SIOCGVNETID = 0xc02069a7
|
||||||
|
SIOCIFAFATTACH = 0x801169ab
|
||||||
|
SIOCIFAFDETACH = 0x801169ac
|
||||||
SIOCIFCREATE = 0x8020697a
|
SIOCIFCREATE = 0x8020697a
|
||||||
SIOCIFDESTROY = 0x80206979
|
SIOCIFDESTROY = 0x80206979
|
||||||
SIOCIFGCLONERS = 0xc00c6978
|
SIOCIFGCLONERS = 0xc00c6978
|
||||||
SIOCSETKALIVE = 0x801869a3
|
SIOCSETKALIVE = 0x801869a3
|
||||||
SIOCSETLABEL = 0x80206999
|
SIOCSETLABEL = 0x80206999
|
||||||
|
SIOCSETMPWCFG = 0x802069ad
|
||||||
SIOCSETPFLOW = 0x802069fd
|
SIOCSETPFLOW = 0x802069fd
|
||||||
SIOCSETPFSYNC = 0x802069f7
|
SIOCSETPFSYNC = 0x802069f7
|
||||||
SIOCSETVLAN = 0x8020698f
|
SIOCSETVLAN = 0x8020698f
|
||||||
SIOCSHIWAT = 0x80047300
|
|
||||||
SIOCSIFADDR = 0x8020690c
|
SIOCSIFADDR = 0x8020690c
|
||||||
SIOCSIFASYNCMAP = 0x8020697d
|
|
||||||
SIOCSIFBRDADDR = 0x80206913
|
SIOCSIFBRDADDR = 0x80206913
|
||||||
SIOCSIFDESCR = 0x80206980
|
SIOCSIFDESCR = 0x80206980
|
||||||
SIOCSIFDSTADDR = 0x8020690e
|
SIOCSIFDSTADDR = 0x8020690e
|
||||||
@ -1209,25 +1387,37 @@ const (
|
|||||||
SIOCSIFGATTR = 0x8024698c
|
SIOCSIFGATTR = 0x8024698c
|
||||||
SIOCSIFGENERIC = 0x80206939
|
SIOCSIFGENERIC = 0x80206939
|
||||||
SIOCSIFLLADDR = 0x8020691f
|
SIOCSIFLLADDR = 0x8020691f
|
||||||
SIOCSIFMEDIA = 0xc0206935
|
SIOCSIFLLPRIO = 0x802069b5
|
||||||
|
SIOCSIFMEDIA = 0xc0206937
|
||||||
SIOCSIFMETRIC = 0x80206918
|
SIOCSIFMETRIC = 0x80206918
|
||||||
SIOCSIFMTU = 0x8020697f
|
SIOCSIFMTU = 0x8020697f
|
||||||
SIOCSIFNETMASK = 0x80206916
|
SIOCSIFNETMASK = 0x80206916
|
||||||
SIOCSIFPHYADDR = 0x80406946
|
SIOCSIFPAIR = 0x802069b0
|
||||||
|
SIOCSIFPARENT = 0x802069b2
|
||||||
SIOCSIFPRIORITY = 0x8020699b
|
SIOCSIFPRIORITY = 0x8020699b
|
||||||
SIOCSIFRDOMAIN = 0x8020699f
|
SIOCSIFRDOMAIN = 0x8020699f
|
||||||
SIOCSIFRTLABEL = 0x80206982
|
SIOCSIFRTLABEL = 0x80206982
|
||||||
SIOCSIFTIMESLOT = 0x80206985
|
|
||||||
SIOCSIFXFLAGS = 0x8020699d
|
SIOCSIFXFLAGS = 0x8020699d
|
||||||
SIOCSLIFPHYADDR = 0x8218694a
|
SIOCSLIFPHYADDR = 0x8218694a
|
||||||
|
SIOCSLIFPHYDF = 0x802069c1
|
||||||
|
SIOCSLIFPHYECN = 0x802069c7
|
||||||
SIOCSLIFPHYRTABLE = 0x802069a1
|
SIOCSLIFPHYRTABLE = 0x802069a1
|
||||||
SIOCSLIFPHYTTL = 0x802069a8
|
SIOCSLIFPHYTTL = 0x802069a8
|
||||||
SIOCSLOWAT = 0x80047302
|
|
||||||
SIOCSPGRP = 0x80047308
|
SIOCSPGRP = 0x80047308
|
||||||
|
SIOCSPWE3CTRLWORD = 0x802069dc
|
||||||
|
SIOCSPWE3FAT = 0x802069dd
|
||||||
|
SIOCSPWE3NEIGHBOR = 0x821869de
|
||||||
|
SIOCSRXHPRIO = 0x802069db
|
||||||
SIOCSSPPPPARAMS = 0x80206993
|
SIOCSSPPPPARAMS = 0x80206993
|
||||||
|
SIOCSTXHPRIO = 0x802069c5
|
||||||
|
SIOCSUMBPARAM = 0x802069bf
|
||||||
SIOCSVH = 0xc02069f5
|
SIOCSVH = 0xc02069f5
|
||||||
|
SIOCSVNETFLOWID = 0x802069c3
|
||||||
SIOCSVNETID = 0x802069a6
|
SIOCSVNETID = 0x802069a6
|
||||||
|
SOCK_CLOEXEC = 0x8000
|
||||||
SOCK_DGRAM = 0x2
|
SOCK_DGRAM = 0x2
|
||||||
|
SOCK_DNS = 0x1000
|
||||||
|
SOCK_NONBLOCK = 0x4000
|
||||||
SOCK_RAW = 0x3
|
SOCK_RAW = 0x3
|
||||||
SOCK_RDM = 0x4
|
SOCK_RDM = 0x4
|
||||||
SOCK_SEQPACKET = 0x5
|
SOCK_SEQPACKET = 0x5
|
||||||
@ -1238,6 +1428,7 @@ const (
|
|||||||
SO_BINDANY = 0x1000
|
SO_BINDANY = 0x1000
|
||||||
SO_BROADCAST = 0x20
|
SO_BROADCAST = 0x20
|
||||||
SO_DEBUG = 0x1
|
SO_DEBUG = 0x1
|
||||||
|
SO_DOMAIN = 0x1024
|
||||||
SO_DONTROUTE = 0x10
|
SO_DONTROUTE = 0x10
|
||||||
SO_ERROR = 0x1007
|
SO_ERROR = 0x1007
|
||||||
SO_KEEPALIVE = 0x8
|
SO_KEEPALIVE = 0x8
|
||||||
@ -1245,6 +1436,7 @@ const (
|
|||||||
SO_NETPROC = 0x1020
|
SO_NETPROC = 0x1020
|
||||||
SO_OOBINLINE = 0x100
|
SO_OOBINLINE = 0x100
|
||||||
SO_PEERCRED = 0x1022
|
SO_PEERCRED = 0x1022
|
||||||
|
SO_PROTOCOL = 0x1025
|
||||||
SO_RCVBUF = 0x1002
|
SO_RCVBUF = 0x1002
|
||||||
SO_RCVLOWAT = 0x1004
|
SO_RCVLOWAT = 0x1004
|
||||||
SO_RCVTIMEO = 0x1006
|
SO_RCVTIMEO = 0x1006
|
||||||
@ -1258,6 +1450,7 @@ const (
|
|||||||
SO_TIMESTAMP = 0x800
|
SO_TIMESTAMP = 0x800
|
||||||
SO_TYPE = 0x1008
|
SO_TYPE = 0x1008
|
||||||
SO_USELOOPBACK = 0x40
|
SO_USELOOPBACK = 0x40
|
||||||
|
SO_ZEROIZE = 0x2000
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
S_IFBLK = 0x6000
|
S_IFBLK = 0x6000
|
||||||
@ -1287,9 +1480,24 @@ const (
|
|||||||
S_IXOTH = 0x1
|
S_IXOTH = 0x1
|
||||||
S_IXUSR = 0x40
|
S_IXUSR = 0x40
|
||||||
TCIFLUSH = 0x1
|
TCIFLUSH = 0x1
|
||||||
|
TCIOFF = 0x3
|
||||||
TCIOFLUSH = 0x3
|
TCIOFLUSH = 0x3
|
||||||
|
TCION = 0x4
|
||||||
TCOFLUSH = 0x2
|
TCOFLUSH = 0x2
|
||||||
TCP_MAXBURST = 0x4
|
TCOOFF = 0x1
|
||||||
|
TCOON = 0x2
|
||||||
|
TCPOPT_EOL = 0x0
|
||||||
|
TCPOPT_MAXSEG = 0x2
|
||||||
|
TCPOPT_NOP = 0x1
|
||||||
|
TCPOPT_SACK = 0x5
|
||||||
|
TCPOPT_SACK_HDR = 0x1010500
|
||||||
|
TCPOPT_SACK_PERMITTED = 0x4
|
||||||
|
TCPOPT_SACK_PERMIT_HDR = 0x1010402
|
||||||
|
TCPOPT_SIGNATURE = 0x13
|
||||||
|
TCPOPT_TIMESTAMP = 0x8
|
||||||
|
TCPOPT_TSTAMP_HDR = 0x101080a
|
||||||
|
TCPOPT_WINDOW = 0x3
|
||||||
|
TCP_INFO = 0x9
|
||||||
TCP_MAXSEG = 0x2
|
TCP_MAXSEG = 0x2
|
||||||
TCP_MAXWIN = 0xffff
|
TCP_MAXWIN = 0xffff
|
||||||
TCP_MAX_SACK = 0x3
|
TCP_MAX_SACK = 0x3
|
||||||
@ -1298,11 +1506,15 @@ const (
|
|||||||
TCP_MSS = 0x200
|
TCP_MSS = 0x200
|
||||||
TCP_NODELAY = 0x1
|
TCP_NODELAY = 0x1
|
||||||
TCP_NOPUSH = 0x10
|
TCP_NOPUSH = 0x10
|
||||||
TCP_NSTATES = 0xb
|
TCP_SACKHOLE_LIMIT = 0x80
|
||||||
TCP_SACK_ENABLE = 0x8
|
TCP_SACK_ENABLE = 0x8
|
||||||
TCSAFLUSH = 0x2
|
TCSAFLUSH = 0x2
|
||||||
|
TIMER_ABSTIME = 0x1
|
||||||
|
TIMER_RELTIME = 0x0
|
||||||
TIOCCBRK = 0x2000747a
|
TIOCCBRK = 0x2000747a
|
||||||
TIOCCDTR = 0x20007478
|
TIOCCDTR = 0x20007478
|
||||||
|
TIOCCHKVERAUTH = 0x2000741e
|
||||||
|
TIOCCLRVERAUTH = 0x2000741d
|
||||||
TIOCCONS = 0x80047462
|
TIOCCONS = 0x80047462
|
||||||
TIOCDRAIN = 0x2000745e
|
TIOCDRAIN = 0x2000745e
|
||||||
TIOCEXCL = 0x2000740d
|
TIOCEXCL = 0x2000740d
|
||||||
@ -1357,17 +1569,21 @@ const (
|
|||||||
TIOCSETAF = 0x802c7416
|
TIOCSETAF = 0x802c7416
|
||||||
TIOCSETAW = 0x802c7415
|
TIOCSETAW = 0x802c7415
|
||||||
TIOCSETD = 0x8004741b
|
TIOCSETD = 0x8004741b
|
||||||
|
TIOCSETVERAUTH = 0x8004741c
|
||||||
TIOCSFLAGS = 0x8004745c
|
TIOCSFLAGS = 0x8004745c
|
||||||
TIOCSIG = 0x8004745f
|
TIOCSIG = 0x8004745f
|
||||||
TIOCSPGRP = 0x80047476
|
TIOCSPGRP = 0x80047476
|
||||||
TIOCSTART = 0x2000746e
|
TIOCSTART = 0x2000746e
|
||||||
TIOCSTAT = 0x80047465
|
TIOCSTAT = 0x20007465
|
||||||
TIOCSTI = 0x80017472
|
|
||||||
TIOCSTOP = 0x2000746f
|
TIOCSTOP = 0x2000746f
|
||||||
TIOCSTSTAMP = 0x8008745a
|
TIOCSTSTAMP = 0x8008745a
|
||||||
TIOCSWINSZ = 0x80087467
|
TIOCSWINSZ = 0x80087467
|
||||||
TIOCUCNTL = 0x80047466
|
TIOCUCNTL = 0x80047466
|
||||||
|
TIOCUCNTL_CBRK = 0x7a
|
||||||
|
TIOCUCNTL_SBRK = 0x7b
|
||||||
TOSTOP = 0x400000
|
TOSTOP = 0x400000
|
||||||
|
UTIME_NOW = -0x2
|
||||||
|
UTIME_OMIT = -0x1
|
||||||
VDISCARD = 0xf
|
VDISCARD = 0xf
|
||||||
VDSUSP = 0xb
|
VDSUSP = 0xb
|
||||||
VEOF = 0x0
|
VEOF = 0x0
|
||||||
@ -1378,6 +1594,19 @@ const (
|
|||||||
VKILL = 0x5
|
VKILL = 0x5
|
||||||
VLNEXT = 0xe
|
VLNEXT = 0xe
|
||||||
VMIN = 0x10
|
VMIN = 0x10
|
||||||
|
VM_ANONMIN = 0x7
|
||||||
|
VM_LOADAVG = 0x2
|
||||||
|
VM_MALLOC_CONF = 0xc
|
||||||
|
VM_MAXID = 0xd
|
||||||
|
VM_MAXSLP = 0xa
|
||||||
|
VM_METER = 0x1
|
||||||
|
VM_NKMEMPAGES = 0x6
|
||||||
|
VM_PSSTRINGS = 0x3
|
||||||
|
VM_SWAPENCRYPT = 0x5
|
||||||
|
VM_USPACE = 0xb
|
||||||
|
VM_UVMEXP = 0x4
|
||||||
|
VM_VNODEMIN = 0x9
|
||||||
|
VM_VTEXTMIN = 0x8
|
||||||
VQUIT = 0x9
|
VQUIT = 0x9
|
||||||
VREPRINT = 0x6
|
VREPRINT = 0x6
|
||||||
VSTART = 0xc
|
VSTART = 0xc
|
||||||
@ -1390,8 +1619,8 @@ const (
|
|||||||
WCONTINUED = 0x8
|
WCONTINUED = 0x8
|
||||||
WCOREFLAG = 0x80
|
WCOREFLAG = 0x80
|
||||||
WNOHANG = 0x1
|
WNOHANG = 0x1
|
||||||
WSTOPPED = 0x7f
|
|
||||||
WUNTRACED = 0x2
|
WUNTRACED = 0x2
|
||||||
|
XCASE = 0x1000000
|
||||||
)
|
)
|
||||||
|
|
||||||
// Errors
|
// Errors
|
||||||
@ -1405,6 +1634,7 @@ const (
|
|||||||
EALREADY = syscall.Errno(0x25)
|
EALREADY = syscall.Errno(0x25)
|
||||||
EAUTH = syscall.Errno(0x50)
|
EAUTH = syscall.Errno(0x50)
|
||||||
EBADF = syscall.Errno(0x9)
|
EBADF = syscall.Errno(0x9)
|
||||||
|
EBADMSG = syscall.Errno(0x5c)
|
||||||
EBADRPC = syscall.Errno(0x48)
|
EBADRPC = syscall.Errno(0x48)
|
||||||
EBUSY = syscall.Errno(0x10)
|
EBUSY = syscall.Errno(0x10)
|
||||||
ECANCELED = syscall.Errno(0x58)
|
ECANCELED = syscall.Errno(0x58)
|
||||||
@ -1431,7 +1661,7 @@ const (
|
|||||||
EIPSEC = syscall.Errno(0x52)
|
EIPSEC = syscall.Errno(0x52)
|
||||||
EISCONN = syscall.Errno(0x38)
|
EISCONN = syscall.Errno(0x38)
|
||||||
EISDIR = syscall.Errno(0x15)
|
EISDIR = syscall.Errno(0x15)
|
||||||
ELAST = syscall.Errno(0x5b)
|
ELAST = syscall.Errno(0x5f)
|
||||||
ELOOP = syscall.Errno(0x3e)
|
ELOOP = syscall.Errno(0x3e)
|
||||||
EMEDIUMTYPE = syscall.Errno(0x56)
|
EMEDIUMTYPE = syscall.Errno(0x56)
|
||||||
EMFILE = syscall.Errno(0x18)
|
EMFILE = syscall.Errno(0x18)
|
||||||
@ -1459,12 +1689,14 @@ const (
|
|||||||
ENOTCONN = syscall.Errno(0x39)
|
ENOTCONN = syscall.Errno(0x39)
|
||||||
ENOTDIR = syscall.Errno(0x14)
|
ENOTDIR = syscall.Errno(0x14)
|
||||||
ENOTEMPTY = syscall.Errno(0x42)
|
ENOTEMPTY = syscall.Errno(0x42)
|
||||||
|
ENOTRECOVERABLE = syscall.Errno(0x5d)
|
||||||
ENOTSOCK = syscall.Errno(0x26)
|
ENOTSOCK = syscall.Errno(0x26)
|
||||||
ENOTSUP = syscall.Errno(0x5b)
|
ENOTSUP = syscall.Errno(0x5b)
|
||||||
ENOTTY = syscall.Errno(0x19)
|
ENOTTY = syscall.Errno(0x19)
|
||||||
ENXIO = syscall.Errno(0x6)
|
ENXIO = syscall.Errno(0x6)
|
||||||
EOPNOTSUPP = syscall.Errno(0x2d)
|
EOPNOTSUPP = syscall.Errno(0x2d)
|
||||||
EOVERFLOW = syscall.Errno(0x57)
|
EOVERFLOW = syscall.Errno(0x57)
|
||||||
|
EOWNERDEAD = syscall.Errno(0x5e)
|
||||||
EPERM = syscall.Errno(0x1)
|
EPERM = syscall.Errno(0x1)
|
||||||
EPFNOSUPPORT = syscall.Errno(0x2e)
|
EPFNOSUPPORT = syscall.Errno(0x2e)
|
||||||
EPIPE = syscall.Errno(0x20)
|
EPIPE = syscall.Errno(0x20)
|
||||||
@ -1472,6 +1704,7 @@ const (
|
|||||||
EPROCUNAVAIL = syscall.Errno(0x4c)
|
EPROCUNAVAIL = syscall.Errno(0x4c)
|
||||||
EPROGMISMATCH = syscall.Errno(0x4b)
|
EPROGMISMATCH = syscall.Errno(0x4b)
|
||||||
EPROGUNAVAIL = syscall.Errno(0x4a)
|
EPROGUNAVAIL = syscall.Errno(0x4a)
|
||||||
|
EPROTO = syscall.Errno(0x5f)
|
||||||
EPROTONOSUPPORT = syscall.Errno(0x2b)
|
EPROTONOSUPPORT = syscall.Errno(0x2b)
|
||||||
EPROTOTYPE = syscall.Errno(0x29)
|
EPROTOTYPE = syscall.Errno(0x29)
|
||||||
ERANGE = syscall.Errno(0x22)
|
ERANGE = syscall.Errno(0x22)
|
||||||
@ -1568,7 +1801,7 @@ var errorList = [...]struct {
|
|||||||
{32, "EPIPE", "broken pipe"},
|
{32, "EPIPE", "broken pipe"},
|
||||||
{33, "EDOM", "numerical argument out of domain"},
|
{33, "EDOM", "numerical argument out of domain"},
|
||||||
{34, "ERANGE", "result too large"},
|
{34, "ERANGE", "result too large"},
|
||||||
{35, "EWOULDBLOCK", "resource temporarily unavailable"},
|
{35, "EAGAIN", "resource temporarily unavailable"},
|
||||||
{36, "EINPROGRESS", "operation now in progress"},
|
{36, "EINPROGRESS", "operation now in progress"},
|
||||||
{37, "EALREADY", "operation already in progress"},
|
{37, "EALREADY", "operation already in progress"},
|
||||||
{38, "ENOTSOCK", "socket operation on non-socket"},
|
{38, "ENOTSOCK", "socket operation on non-socket"},
|
||||||
@ -1624,7 +1857,11 @@ var errorList = [...]struct {
|
|||||||
{88, "ECANCELED", "operation canceled"},
|
{88, "ECANCELED", "operation canceled"},
|
||||||
{89, "EIDRM", "identifier removed"},
|
{89, "EIDRM", "identifier removed"},
|
||||||
{90, "ENOMSG", "no message of desired type"},
|
{90, "ENOMSG", "no message of desired type"},
|
||||||
{91, "ELAST", "not supported"},
|
{91, "ENOTSUP", "not supported"},
|
||||||
|
{92, "EBADMSG", "bad message"},
|
||||||
|
{93, "ENOTRECOVERABLE", "state not recoverable"},
|
||||||
|
{94, "EOWNERDEAD", "previous owner died"},
|
||||||
|
{95, "ELAST", "protocol error"},
|
||||||
}
|
}
|
||||||
|
|
||||||
// Signal table
|
// Signal table
|
||||||
@ -1638,7 +1875,7 @@ var signalList = [...]struct {
|
|||||||
{3, "SIGQUIT", "quit"},
|
{3, "SIGQUIT", "quit"},
|
||||||
{4, "SIGILL", "illegal instruction"},
|
{4, "SIGILL", "illegal instruction"},
|
||||||
{5, "SIGTRAP", "trace/BPT trap"},
|
{5, "SIGTRAP", "trace/BPT trap"},
|
||||||
{6, "SIGABRT", "abort trap"},
|
{6, "SIGIOT", "abort trap"},
|
||||||
{7, "SIGEMT", "EMT trap"},
|
{7, "SIGEMT", "EMT trap"},
|
||||||
{8, "SIGFPE", "floating point exception"},
|
{8, "SIGFPE", "floating point exception"},
|
||||||
{9, "SIGKILL", "killed"},
|
{9, "SIGKILL", "killed"},
|
||||||
@ -1665,4 +1902,5 @@ var signalList = [...]struct {
|
|||||||
{30, "SIGUSR1", "user defined signal 1"},
|
{30, "SIGUSR1", "user defined signal 1"},
|
||||||
{31, "SIGUSR2", "user defined signal 2"},
|
{31, "SIGUSR2", "user defined signal 2"},
|
||||||
{32, "SIGTHR", "thread AST"},
|
{32, "SIGTHR", "thread AST"},
|
||||||
|
{28672, "SIGSTKSZ", "unknown signal"},
|
||||||
}
|
}
|
||||||
|
189
gateway/vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go
generated
vendored
189
gateway/vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go
generated
vendored
@ -109,6 +109,15 @@ const (
|
|||||||
BPF_DIRECTION_IN = 0x1
|
BPF_DIRECTION_IN = 0x1
|
||||||
BPF_DIRECTION_OUT = 0x2
|
BPF_DIRECTION_OUT = 0x2
|
||||||
BPF_DIV = 0x30
|
BPF_DIV = 0x30
|
||||||
|
BPF_FILDROP_CAPTURE = 0x1
|
||||||
|
BPF_FILDROP_DROP = 0x2
|
||||||
|
BPF_FILDROP_PASS = 0x0
|
||||||
|
BPF_F_DIR_IN = 0x10
|
||||||
|
BPF_F_DIR_MASK = 0x30
|
||||||
|
BPF_F_DIR_OUT = 0x20
|
||||||
|
BPF_F_DIR_SHIFT = 0x4
|
||||||
|
BPF_F_FLOWID = 0x8
|
||||||
|
BPF_F_PRI_MASK = 0x7
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
@ -137,6 +146,7 @@ const (
|
|||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
BPF_RELEASE = 0x30bb6
|
BPF_RELEASE = 0x30bb6
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
|
BPF_RND = 0xc0
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
@ -177,7 +187,65 @@ const (
|
|||||||
CTL_KERN = 0x1
|
CTL_KERN = 0x1
|
||||||
CTL_MAXNAME = 0xc
|
CTL_MAXNAME = 0xc
|
||||||
CTL_NET = 0x4
|
CTL_NET = 0x4
|
||||||
|
DIOCADDQUEUE = 0xc110445d
|
||||||
|
DIOCADDRULE = 0xcd604404
|
||||||
|
DIOCADDSTATE = 0xc1084425
|
||||||
|
DIOCCHANGERULE = 0xcd60441a
|
||||||
|
DIOCCLRIFFLAG = 0xc028445a
|
||||||
|
DIOCCLRSRCNODES = 0x20004455
|
||||||
|
DIOCCLRSTATES = 0xc0e04412
|
||||||
|
DIOCCLRSTATUS = 0xc0284416
|
||||||
|
DIOCGETLIMIT = 0xc0084427
|
||||||
|
DIOCGETQSTATS = 0xc1204460
|
||||||
|
DIOCGETQUEUE = 0xc110445f
|
||||||
|
DIOCGETQUEUES = 0xc110445e
|
||||||
|
DIOCGETRULE = 0xcd604407
|
||||||
|
DIOCGETRULES = 0xcd604406
|
||||||
|
DIOCGETRULESET = 0xc444443b
|
||||||
|
DIOCGETRULESETS = 0xc444443a
|
||||||
|
DIOCGETSRCNODES = 0xc0104454
|
||||||
|
DIOCGETSTATE = 0xc1084413
|
||||||
|
DIOCGETSTATES = 0xc0104419
|
||||||
|
DIOCGETSTATUS = 0xc1e84415
|
||||||
|
DIOCGETSYNFLWATS = 0xc0084463
|
||||||
|
DIOCGETTIMEOUT = 0xc008441e
|
||||||
|
DIOCIGETIFACES = 0xc0284457
|
||||||
|
DIOCKILLSRCNODES = 0xc080445b
|
||||||
|
DIOCKILLSTATES = 0xc0e04429
|
||||||
|
DIOCNATLOOK = 0xc0504417
|
||||||
|
DIOCOSFPADD = 0xc088444f
|
||||||
DIOCOSFPFLUSH = 0x2000444e
|
DIOCOSFPFLUSH = 0x2000444e
|
||||||
|
DIOCOSFPGET = 0xc0884450
|
||||||
|
DIOCRADDADDRS = 0xc4504443
|
||||||
|
DIOCRADDTABLES = 0xc450443d
|
||||||
|
DIOCRCLRADDRS = 0xc4504442
|
||||||
|
DIOCRCLRASTATS = 0xc4504448
|
||||||
|
DIOCRCLRTABLES = 0xc450443c
|
||||||
|
DIOCRCLRTSTATS = 0xc4504441
|
||||||
|
DIOCRDELADDRS = 0xc4504444
|
||||||
|
DIOCRDELTABLES = 0xc450443e
|
||||||
|
DIOCRGETADDRS = 0xc4504446
|
||||||
|
DIOCRGETASTATS = 0xc4504447
|
||||||
|
DIOCRGETTABLES = 0xc450443f
|
||||||
|
DIOCRGETTSTATS = 0xc4504440
|
||||||
|
DIOCRINADEFINE = 0xc450444d
|
||||||
|
DIOCRSETADDRS = 0xc4504445
|
||||||
|
DIOCRSETTFLAGS = 0xc450444a
|
||||||
|
DIOCRTSTADDRS = 0xc4504449
|
||||||
|
DIOCSETDEBUG = 0xc0044418
|
||||||
|
DIOCSETHOSTID = 0xc0044456
|
||||||
|
DIOCSETIFFLAG = 0xc0284459
|
||||||
|
DIOCSETLIMIT = 0xc0084428
|
||||||
|
DIOCSETREASS = 0xc004445c
|
||||||
|
DIOCSETSTATUSIF = 0xc0284414
|
||||||
|
DIOCSETSYNCOOKIES = 0xc0014462
|
||||||
|
DIOCSETSYNFLWATS = 0xc0084461
|
||||||
|
DIOCSETTIMEOUT = 0xc008441d
|
||||||
|
DIOCSTART = 0x20004401
|
||||||
|
DIOCSTOP = 0x20004402
|
||||||
|
DIOCXBEGIN = 0xc0104451
|
||||||
|
DIOCXCOMMIT = 0xc0104452
|
||||||
|
DIOCXROLLBACK = 0xc0104453
|
||||||
DLT_ARCNET = 0x7
|
DLT_ARCNET = 0x7
|
||||||
DLT_ATM_RFC1483 = 0xb
|
DLT_ATM_RFC1483 = 0xb
|
||||||
DLT_AX25 = 0x3
|
DLT_AX25 = 0x3
|
||||||
@ -240,6 +308,8 @@ const (
|
|||||||
EMUL_ENABLED = 0x1
|
EMUL_ENABLED = 0x1
|
||||||
EMUL_NATIVE = 0x2
|
EMUL_NATIVE = 0x2
|
||||||
ENDRUNDISC = 0x9
|
ENDRUNDISC = 0x9
|
||||||
|
ETH64_8021_RSVD_MASK = 0xfffffffffff0
|
||||||
|
ETH64_8021_RSVD_PREFIX = 0x180c2000000
|
||||||
ETHERMIN = 0x2e
|
ETHERMIN = 0x2e
|
||||||
ETHERMTU = 0x5dc
|
ETHERMTU = 0x5dc
|
||||||
ETHERTYPE_8023 = 0x4
|
ETHERTYPE_8023 = 0x4
|
||||||
@ -292,6 +362,7 @@ const (
|
|||||||
ETHERTYPE_DN = 0x6003
|
ETHERTYPE_DN = 0x6003
|
||||||
ETHERTYPE_DOGFIGHT = 0x1989
|
ETHERTYPE_DOGFIGHT = 0x1989
|
||||||
ETHERTYPE_DSMD = 0x8039
|
ETHERTYPE_DSMD = 0x8039
|
||||||
|
ETHERTYPE_EAPOL = 0x888e
|
||||||
ETHERTYPE_ECMA = 0x803
|
ETHERTYPE_ECMA = 0x803
|
||||||
ETHERTYPE_ENCRYPT = 0x803d
|
ETHERTYPE_ENCRYPT = 0x803d
|
||||||
ETHERTYPE_ES = 0x805d
|
ETHERTYPE_ES = 0x805d
|
||||||
@ -323,6 +394,7 @@ const (
|
|||||||
ETHERTYPE_LLDP = 0x88cc
|
ETHERTYPE_LLDP = 0x88cc
|
||||||
ETHERTYPE_LOGICRAFT = 0x8148
|
ETHERTYPE_LOGICRAFT = 0x8148
|
||||||
ETHERTYPE_LOOPBACK = 0x9000
|
ETHERTYPE_LOOPBACK = 0x9000
|
||||||
|
ETHERTYPE_MACSEC = 0x88e5
|
||||||
ETHERTYPE_MATRA = 0x807a
|
ETHERTYPE_MATRA = 0x807a
|
||||||
ETHERTYPE_MAX = 0xffff
|
ETHERTYPE_MAX = 0xffff
|
||||||
ETHERTYPE_MERIT = 0x807c
|
ETHERTYPE_MERIT = 0x807c
|
||||||
@ -351,15 +423,17 @@ const (
|
|||||||
ETHERTYPE_NCD = 0x8149
|
ETHERTYPE_NCD = 0x8149
|
||||||
ETHERTYPE_NESTAR = 0x8006
|
ETHERTYPE_NESTAR = 0x8006
|
||||||
ETHERTYPE_NETBEUI = 0x8191
|
ETHERTYPE_NETBEUI = 0x8191
|
||||||
|
ETHERTYPE_NHRP = 0x2001
|
||||||
ETHERTYPE_NOVELL = 0x8138
|
ETHERTYPE_NOVELL = 0x8138
|
||||||
ETHERTYPE_NS = 0x600
|
ETHERTYPE_NS = 0x600
|
||||||
ETHERTYPE_NSAT = 0x601
|
ETHERTYPE_NSAT = 0x601
|
||||||
ETHERTYPE_NSCOMPAT = 0x807
|
ETHERTYPE_NSCOMPAT = 0x807
|
||||||
|
ETHERTYPE_NSH = 0x984f
|
||||||
ETHERTYPE_NTRAILER = 0x10
|
ETHERTYPE_NTRAILER = 0x10
|
||||||
ETHERTYPE_OS9 = 0x7007
|
ETHERTYPE_OS9 = 0x7007
|
||||||
ETHERTYPE_OS9NET = 0x7009
|
ETHERTYPE_OS9NET = 0x7009
|
||||||
ETHERTYPE_PACER = 0x80c6
|
ETHERTYPE_PACER = 0x80c6
|
||||||
ETHERTYPE_PAE = 0x888e
|
ETHERTYPE_PBB = 0x88e7
|
||||||
ETHERTYPE_PCS = 0x4242
|
ETHERTYPE_PCS = 0x4242
|
||||||
ETHERTYPE_PLANNING = 0x8044
|
ETHERTYPE_PLANNING = 0x8044
|
||||||
ETHERTYPE_PPP = 0x880b
|
ETHERTYPE_PPP = 0x880b
|
||||||
@ -441,10 +515,11 @@ const (
|
|||||||
ETHER_VLAN_ENCAP_LEN = 0x4
|
ETHER_VLAN_ENCAP_LEN = 0x4
|
||||||
EVFILT_AIO = -0x3
|
EVFILT_AIO = -0x3
|
||||||
EVFILT_DEVICE = -0x8
|
EVFILT_DEVICE = -0x8
|
||||||
|
EVFILT_EXCEPT = -0x9
|
||||||
EVFILT_PROC = -0x5
|
EVFILT_PROC = -0x5
|
||||||
EVFILT_READ = -0x1
|
EVFILT_READ = -0x1
|
||||||
EVFILT_SIGNAL = -0x6
|
EVFILT_SIGNAL = -0x6
|
||||||
EVFILT_SYSCOUNT = 0x8
|
EVFILT_SYSCOUNT = 0x9
|
||||||
EVFILT_TIMER = -0x7
|
EVFILT_TIMER = -0x7
|
||||||
EVFILT_VNODE = -0x4
|
EVFILT_VNODE = -0x4
|
||||||
EVFILT_WRITE = -0x2
|
EVFILT_WRITE = -0x2
|
||||||
@ -466,7 +541,7 @@ const (
|
|||||||
EV_FLAG1 = 0x2000
|
EV_FLAG1 = 0x2000
|
||||||
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
|
||||||
EXTPROC = 0x800
|
EXTPROC = 0x800
|
||||||
@ -732,6 +807,7 @@ const (
|
|||||||
IFT_VOICEOVERCABLE = 0xc6
|
IFT_VOICEOVERCABLE = 0xc6
|
||||||
IFT_VOICEOVERFRAMERELAY = 0x99
|
IFT_VOICEOVERFRAMERELAY = 0x99
|
||||||
IFT_VOICEOVERIP = 0x68
|
IFT_VOICEOVERIP = 0x68
|
||||||
|
IFT_WIREGUARD = 0xfb
|
||||||
IFT_X213 = 0x5d
|
IFT_X213 = 0x5d
|
||||||
IFT_X25 = 0x5
|
IFT_X25 = 0x5
|
||||||
IFT_X25DDN = 0x4
|
IFT_X25DDN = 0x4
|
||||||
@ -797,9 +873,11 @@ const (
|
|||||||
IPPROTO_RAW = 0xff
|
IPPROTO_RAW = 0xff
|
||||||
IPPROTO_ROUTING = 0x2b
|
IPPROTO_ROUTING = 0x2b
|
||||||
IPPROTO_RSVP = 0x2e
|
IPPROTO_RSVP = 0x2e
|
||||||
|
IPPROTO_SCTP = 0x84
|
||||||
IPPROTO_TCP = 0x6
|
IPPROTO_TCP = 0x6
|
||||||
IPPROTO_TP = 0x1d
|
IPPROTO_TP = 0x1d
|
||||||
IPPROTO_UDP = 0x11
|
IPPROTO_UDP = 0x11
|
||||||
|
IPPROTO_UDPLITE = 0x88
|
||||||
IPV6_AUTH_LEVEL = 0x35
|
IPV6_AUTH_LEVEL = 0x35
|
||||||
IPV6_AUTOFLOWLABEL = 0x3b
|
IPV6_AUTOFLOWLABEL = 0x3b
|
||||||
IPV6_CHECKSUM = 0x1a
|
IPV6_CHECKSUM = 0x1a
|
||||||
@ -906,6 +984,9 @@ const (
|
|||||||
IP_TTL = 0x4
|
IP_TTL = 0x4
|
||||||
ISIG = 0x80
|
ISIG = 0x80
|
||||||
ISTRIP = 0x20
|
ISTRIP = 0x20
|
||||||
|
ITIMER_PROF = 0x2
|
||||||
|
ITIMER_REAL = 0x0
|
||||||
|
ITIMER_VIRTUAL = 0x1
|
||||||
IUCLC = 0x1000
|
IUCLC = 0x1000
|
||||||
IXANY = 0x800
|
IXANY = 0x800
|
||||||
IXOFF = 0x400
|
IXOFF = 0x400
|
||||||
@ -970,12 +1051,26 @@ const (
|
|||||||
MNT_ROOTFS = 0x4000
|
MNT_ROOTFS = 0x4000
|
||||||
MNT_SOFTDEP = 0x4000000
|
MNT_SOFTDEP = 0x4000000
|
||||||
MNT_STALLED = 0x100000
|
MNT_STALLED = 0x100000
|
||||||
|
MNT_SWAPPABLE = 0x200000
|
||||||
MNT_SYNCHRONOUS = 0x2
|
MNT_SYNCHRONOUS = 0x2
|
||||||
MNT_UPDATE = 0x10000
|
MNT_UPDATE = 0x10000
|
||||||
MNT_VISFLAGMASK = 0x400ffff
|
MNT_VISFLAGMASK = 0x400ffff
|
||||||
MNT_WAIT = 0x1
|
MNT_WAIT = 0x1
|
||||||
MNT_WANTRDWR = 0x2000000
|
MNT_WANTRDWR = 0x2000000
|
||||||
MNT_WXALLOWED = 0x800
|
MNT_WXALLOWED = 0x800
|
||||||
|
MOUNT_AFS = "afs"
|
||||||
|
MOUNT_CD9660 = "cd9660"
|
||||||
|
MOUNT_EXT2FS = "ext2fs"
|
||||||
|
MOUNT_FFS = "ffs"
|
||||||
|
MOUNT_FUSEFS = "fuse"
|
||||||
|
MOUNT_MFS = "mfs"
|
||||||
|
MOUNT_MSDOS = "msdos"
|
||||||
|
MOUNT_NCPFS = "ncpfs"
|
||||||
|
MOUNT_NFS = "nfs"
|
||||||
|
MOUNT_NTFS = "ntfs"
|
||||||
|
MOUNT_TMPFS = "tmpfs"
|
||||||
|
MOUNT_UDF = "udf"
|
||||||
|
MOUNT_UFS = "ffs"
|
||||||
MSG_BCAST = 0x100
|
MSG_BCAST = 0x100
|
||||||
MSG_CMSG_CLOEXEC = 0x800
|
MSG_CMSG_CLOEXEC = 0x800
|
||||||
MSG_CTRUNC = 0x20
|
MSG_CTRUNC = 0x20
|
||||||
@ -988,6 +1083,7 @@ const (
|
|||||||
MSG_PEEK = 0x2
|
MSG_PEEK = 0x2
|
||||||
MSG_TRUNC = 0x10
|
MSG_TRUNC = 0x10
|
||||||
MSG_WAITALL = 0x40
|
MSG_WAITALL = 0x40
|
||||||
|
MSG_WAITFORONE = 0x1000
|
||||||
MS_ASYNC = 0x1
|
MS_ASYNC = 0x1
|
||||||
MS_INVALIDATE = 0x4
|
MS_INVALIDATE = 0x4
|
||||||
MS_SYNC = 0x2
|
MS_SYNC = 0x2
|
||||||
@ -996,7 +1092,8 @@ const (
|
|||||||
NET_RT_FLAGS = 0x2
|
NET_RT_FLAGS = 0x2
|
||||||
NET_RT_IFLIST = 0x3
|
NET_RT_IFLIST = 0x3
|
||||||
NET_RT_IFNAMES = 0x6
|
NET_RT_IFNAMES = 0x6
|
||||||
NET_RT_MAXID = 0x7
|
NET_RT_MAXID = 0x8
|
||||||
|
NET_RT_SOURCE = 0x7
|
||||||
NET_RT_STATS = 0x4
|
NET_RT_STATS = 0x4
|
||||||
NET_RT_TABLE = 0x5
|
NET_RT_TABLE = 0x5
|
||||||
NFDBITS = 0x20
|
NFDBITS = 0x20
|
||||||
@ -1013,6 +1110,7 @@ const (
|
|||||||
NOTE_FORK = 0x40000000
|
NOTE_FORK = 0x40000000
|
||||||
NOTE_LINK = 0x10
|
NOTE_LINK = 0x10
|
||||||
NOTE_LOWAT = 0x1
|
NOTE_LOWAT = 0x1
|
||||||
|
NOTE_OOB = 0x4
|
||||||
NOTE_PCTRLMASK = 0xf0000000
|
NOTE_PCTRLMASK = 0xf0000000
|
||||||
NOTE_PDATAMASK = 0xfffff
|
NOTE_PDATAMASK = 0xfffff
|
||||||
NOTE_RENAME = 0x20
|
NOTE_RENAME = 0x20
|
||||||
@ -1130,9 +1228,11 @@ const (
|
|||||||
RTF_STATIC = 0x800
|
RTF_STATIC = 0x800
|
||||||
RTF_UP = 0x1
|
RTF_UP = 0x1
|
||||||
RTF_USETRAILERS = 0x8000
|
RTF_USETRAILERS = 0x8000
|
||||||
|
RTM_80211INFO = 0x15
|
||||||
RTM_ADD = 0x1
|
RTM_ADD = 0x1
|
||||||
RTM_BFD = 0x12
|
RTM_BFD = 0x12
|
||||||
RTM_CHANGE = 0x3
|
RTM_CHANGE = 0x3
|
||||||
|
RTM_CHGADDRATTR = 0x14
|
||||||
RTM_DELADDR = 0xd
|
RTM_DELADDR = 0xd
|
||||||
RTM_DELETE = 0x2
|
RTM_DELETE = 0x2
|
||||||
RTM_DESYNC = 0x10
|
RTM_DESYNC = 0x10
|
||||||
@ -1140,7 +1240,6 @@ const (
|
|||||||
RTM_IFANNOUNCE = 0xf
|
RTM_IFANNOUNCE = 0xf
|
||||||
RTM_IFINFO = 0xe
|
RTM_IFINFO = 0xe
|
||||||
RTM_INVALIDATE = 0x11
|
RTM_INVALIDATE = 0x11
|
||||||
RTM_LOCK = 0x8
|
|
||||||
RTM_LOSING = 0x5
|
RTM_LOSING = 0x5
|
||||||
RTM_MAXSIZE = 0x800
|
RTM_MAXSIZE = 0x800
|
||||||
RTM_MISS = 0x7
|
RTM_MISS = 0x7
|
||||||
@ -1148,7 +1247,7 @@ const (
|
|||||||
RTM_PROPOSAL = 0x13
|
RTM_PROPOSAL = 0x13
|
||||||
RTM_REDIRECT = 0x6
|
RTM_REDIRECT = 0x6
|
||||||
RTM_RESOLVE = 0xb
|
RTM_RESOLVE = 0xb
|
||||||
RTM_RTTUNIT = 0xf4240
|
RTM_SOURCE = 0x16
|
||||||
RTM_VERSION = 0x5
|
RTM_VERSION = 0x5
|
||||||
RTV_EXPIRE = 0x4
|
RTV_EXPIRE = 0x4
|
||||||
RTV_HOPCOUNT = 0x2
|
RTV_HOPCOUNT = 0x2
|
||||||
@ -1166,6 +1265,9 @@ const (
|
|||||||
RUSAGE_THREAD = 0x1
|
RUSAGE_THREAD = 0x1
|
||||||
SCM_RIGHTS = 0x1
|
SCM_RIGHTS = 0x1
|
||||||
SCM_TIMESTAMP = 0x4
|
SCM_TIMESTAMP = 0x4
|
||||||
|
SEEK_CUR = 0x1
|
||||||
|
SEEK_END = 0x2
|
||||||
|
SEEK_SET = 0x0
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
@ -1182,35 +1284,37 @@ const (
|
|||||||
SIOCBRDGDELS = 0x80606942
|
SIOCBRDGDELS = 0x80606942
|
||||||
SIOCBRDGFLUSH = 0x80606948
|
SIOCBRDGFLUSH = 0x80606948
|
||||||
SIOCBRDGFRL = 0x808c694e
|
SIOCBRDGFRL = 0x808c694e
|
||||||
SIOCBRDGGCACHE = 0xc0186941
|
SIOCBRDGGCACHE = 0xc0146941
|
||||||
SIOCBRDGGFD = 0xc0186952
|
SIOCBRDGGFD = 0xc0146952
|
||||||
SIOCBRDGGHT = 0xc0186951
|
SIOCBRDGGHT = 0xc0146951
|
||||||
SIOCBRDGGIFFLGS = 0xc060693e
|
SIOCBRDGGIFFLGS = 0xc060693e
|
||||||
SIOCBRDGGMA = 0xc0186953
|
SIOCBRDGGMA = 0xc0146953
|
||||||
SIOCBRDGGPARAM = 0xc0406958
|
SIOCBRDGGPARAM = 0xc0406958
|
||||||
SIOCBRDGGPRI = 0xc0186950
|
SIOCBRDGGPRI = 0xc0146950
|
||||||
SIOCBRDGGRL = 0xc030694f
|
SIOCBRDGGRL = 0xc030694f
|
||||||
SIOCBRDGGTO = 0xc0186946
|
SIOCBRDGGTO = 0xc0146946
|
||||||
SIOCBRDGIFS = 0xc0606942
|
SIOCBRDGIFS = 0xc0606942
|
||||||
SIOCBRDGRTS = 0xc0206943
|
SIOCBRDGRTS = 0xc0206943
|
||||||
SIOCBRDGSADDR = 0xc1286944
|
SIOCBRDGSADDR = 0xc1286944
|
||||||
SIOCBRDGSCACHE = 0x80186940
|
SIOCBRDGSCACHE = 0x80146940
|
||||||
SIOCBRDGSFD = 0x80186952
|
SIOCBRDGSFD = 0x80146952
|
||||||
SIOCBRDGSHT = 0x80186951
|
SIOCBRDGSHT = 0x80146951
|
||||||
SIOCBRDGSIFCOST = 0x80606955
|
SIOCBRDGSIFCOST = 0x80606955
|
||||||
SIOCBRDGSIFFLGS = 0x8060693f
|
SIOCBRDGSIFFLGS = 0x8060693f
|
||||||
SIOCBRDGSIFPRIO = 0x80606954
|
SIOCBRDGSIFPRIO = 0x80606954
|
||||||
SIOCBRDGSIFPROT = 0x8060694a
|
SIOCBRDGSIFPROT = 0x8060694a
|
||||||
SIOCBRDGSMA = 0x80186953
|
SIOCBRDGSMA = 0x80146953
|
||||||
SIOCBRDGSPRI = 0x80186950
|
SIOCBRDGSPRI = 0x80146950
|
||||||
SIOCBRDGSPROTO = 0x8018695a
|
SIOCBRDGSPROTO = 0x8014695a
|
||||||
SIOCBRDGSTO = 0x80186945
|
SIOCBRDGSTO = 0x80146945
|
||||||
SIOCBRDGSTXHC = 0x80186959
|
SIOCBRDGSTXHC = 0x80146959
|
||||||
|
SIOCDELLABEL = 0x80206997
|
||||||
SIOCDELMULTI = 0x80206932
|
SIOCDELMULTI = 0x80206932
|
||||||
SIOCDIFADDR = 0x80206919
|
SIOCDIFADDR = 0x80206919
|
||||||
SIOCDIFGROUP = 0x80286989
|
SIOCDIFGROUP = 0x80286989
|
||||||
SIOCDIFPARENT = 0x802069b4
|
SIOCDIFPARENT = 0x802069b4
|
||||||
SIOCDIFPHYADDR = 0x80206949
|
SIOCDIFPHYADDR = 0x80206949
|
||||||
|
SIOCDPWE3NEIGHBOR = 0x802069de
|
||||||
SIOCDVNETID = 0x802069af
|
SIOCDVNETID = 0x802069af
|
||||||
SIOCGETKALIVE = 0xc01869a4
|
SIOCGETKALIVE = 0xc01869a4
|
||||||
SIOCGETLABEL = 0x8020699a
|
SIOCGETLABEL = 0x8020699a
|
||||||
@ -1229,6 +1333,7 @@ const (
|
|||||||
SIOCGIFFLAGS = 0xc0206911
|
SIOCGIFFLAGS = 0xc0206911
|
||||||
SIOCGIFGATTR = 0xc028698b
|
SIOCGIFGATTR = 0xc028698b
|
||||||
SIOCGIFGENERIC = 0xc020693a
|
SIOCGIFGENERIC = 0xc020693a
|
||||||
|
SIOCGIFGLIST = 0xc028698d
|
||||||
SIOCGIFGMEMB = 0xc028698a
|
SIOCGIFGMEMB = 0xc028698a
|
||||||
SIOCGIFGROUP = 0xc0286988
|
SIOCGIFGROUP = 0xc0286988
|
||||||
SIOCGIFHARDMTU = 0xc02069a5
|
SIOCGIFHARDMTU = 0xc02069a5
|
||||||
@ -1243,13 +1348,21 @@ const (
|
|||||||
SIOCGIFRDOMAIN = 0xc02069a0
|
SIOCGIFRDOMAIN = 0xc02069a0
|
||||||
SIOCGIFRTLABEL = 0xc0206983
|
SIOCGIFRTLABEL = 0xc0206983
|
||||||
SIOCGIFRXR = 0x802069aa
|
SIOCGIFRXR = 0x802069aa
|
||||||
|
SIOCGIFSFFPAGE = 0xc1126939
|
||||||
SIOCGIFXFLAGS = 0xc020699e
|
SIOCGIFXFLAGS = 0xc020699e
|
||||||
SIOCGLIFPHYADDR = 0xc218694b
|
SIOCGLIFPHYADDR = 0xc218694b
|
||||||
SIOCGLIFPHYDF = 0xc02069c2
|
SIOCGLIFPHYDF = 0xc02069c2
|
||||||
|
SIOCGLIFPHYECN = 0xc02069c8
|
||||||
SIOCGLIFPHYRTABLE = 0xc02069a2
|
SIOCGLIFPHYRTABLE = 0xc02069a2
|
||||||
SIOCGLIFPHYTTL = 0xc02069a9
|
SIOCGLIFPHYTTL = 0xc02069a9
|
||||||
SIOCGPGRP = 0x40047309
|
SIOCGPGRP = 0x40047309
|
||||||
|
SIOCGPWE3 = 0xc0206998
|
||||||
|
SIOCGPWE3CTRLWORD = 0xc02069dc
|
||||||
|
SIOCGPWE3FAT = 0xc02069dd
|
||||||
|
SIOCGPWE3NEIGHBOR = 0xc21869de
|
||||||
|
SIOCGRXHPRIO = 0xc02069db
|
||||||
SIOCGSPPPPARAMS = 0xc0206994
|
SIOCGSPPPPARAMS = 0xc0206994
|
||||||
|
SIOCGTXHPRIO = 0xc02069c6
|
||||||
SIOCGUMBINFO = 0xc02069be
|
SIOCGUMBINFO = 0xc02069be
|
||||||
SIOCGUMBPARAM = 0xc02069c0
|
SIOCGUMBPARAM = 0xc02069c0
|
||||||
SIOCGVH = 0xc02069f6
|
SIOCGVH = 0xc02069f6
|
||||||
@ -1287,19 +1400,20 @@ const (
|
|||||||
SIOCSIFXFLAGS = 0x8020699d
|
SIOCSIFXFLAGS = 0x8020699d
|
||||||
SIOCSLIFPHYADDR = 0x8218694a
|
SIOCSLIFPHYADDR = 0x8218694a
|
||||||
SIOCSLIFPHYDF = 0x802069c1
|
SIOCSLIFPHYDF = 0x802069c1
|
||||||
|
SIOCSLIFPHYECN = 0x802069c7
|
||||||
SIOCSLIFPHYRTABLE = 0x802069a1
|
SIOCSLIFPHYRTABLE = 0x802069a1
|
||||||
SIOCSLIFPHYTTL = 0x802069a8
|
SIOCSLIFPHYTTL = 0x802069a8
|
||||||
SIOCSPGRP = 0x80047308
|
SIOCSPGRP = 0x80047308
|
||||||
|
SIOCSPWE3CTRLWORD = 0x802069dc
|
||||||
|
SIOCSPWE3FAT = 0x802069dd
|
||||||
|
SIOCSPWE3NEIGHBOR = 0x821869de
|
||||||
|
SIOCSRXHPRIO = 0x802069db
|
||||||
SIOCSSPPPPARAMS = 0x80206993
|
SIOCSSPPPPARAMS = 0x80206993
|
||||||
|
SIOCSTXHPRIO = 0x802069c5
|
||||||
SIOCSUMBPARAM = 0x802069bf
|
SIOCSUMBPARAM = 0x802069bf
|
||||||
SIOCSVH = 0xc02069f5
|
SIOCSVH = 0xc02069f5
|
||||||
SIOCSVNETFLOWID = 0x802069c3
|
SIOCSVNETFLOWID = 0x802069c3
|
||||||
SIOCSVNETID = 0x802069a6
|
SIOCSVNETID = 0x802069a6
|
||||||
SIOCSWGDPID = 0xc018695b
|
|
||||||
SIOCSWGMAXFLOW = 0xc0186960
|
|
||||||
SIOCSWGMAXGROUP = 0xc018695d
|
|
||||||
SIOCSWSDPID = 0x8018695c
|
|
||||||
SIOCSWSPORTNO = 0xc060695f
|
|
||||||
SOCK_CLOEXEC = 0x8000
|
SOCK_CLOEXEC = 0x8000
|
||||||
SOCK_DGRAM = 0x2
|
SOCK_DGRAM = 0x2
|
||||||
SOCK_DNS = 0x1000
|
SOCK_DNS = 0x1000
|
||||||
@ -1314,6 +1428,7 @@ const (
|
|||||||
SO_BINDANY = 0x1000
|
SO_BINDANY = 0x1000
|
||||||
SO_BROADCAST = 0x20
|
SO_BROADCAST = 0x20
|
||||||
SO_DEBUG = 0x1
|
SO_DEBUG = 0x1
|
||||||
|
SO_DOMAIN = 0x1024
|
||||||
SO_DONTROUTE = 0x10
|
SO_DONTROUTE = 0x10
|
||||||
SO_ERROR = 0x1007
|
SO_ERROR = 0x1007
|
||||||
SO_KEEPALIVE = 0x8
|
SO_KEEPALIVE = 0x8
|
||||||
@ -1321,6 +1436,7 @@ const (
|
|||||||
SO_NETPROC = 0x1020
|
SO_NETPROC = 0x1020
|
||||||
SO_OOBINLINE = 0x100
|
SO_OOBINLINE = 0x100
|
||||||
SO_PEERCRED = 0x1022
|
SO_PEERCRED = 0x1022
|
||||||
|
SO_PROTOCOL = 0x1025
|
||||||
SO_RCVBUF = 0x1002
|
SO_RCVBUF = 0x1002
|
||||||
SO_RCVLOWAT = 0x1004
|
SO_RCVLOWAT = 0x1004
|
||||||
SO_RCVTIMEO = 0x1006
|
SO_RCVTIMEO = 0x1006
|
||||||
@ -1370,7 +1486,18 @@ const (
|
|||||||
TCOFLUSH = 0x2
|
TCOFLUSH = 0x2
|
||||||
TCOOFF = 0x1
|
TCOOFF = 0x1
|
||||||
TCOON = 0x2
|
TCOON = 0x2
|
||||||
TCP_MAXBURST = 0x4
|
TCPOPT_EOL = 0x0
|
||||||
|
TCPOPT_MAXSEG = 0x2
|
||||||
|
TCPOPT_NOP = 0x1
|
||||||
|
TCPOPT_SACK = 0x5
|
||||||
|
TCPOPT_SACK_HDR = 0x1010500
|
||||||
|
TCPOPT_SACK_PERMITTED = 0x4
|
||||||
|
TCPOPT_SACK_PERMIT_HDR = 0x1010402
|
||||||
|
TCPOPT_SIGNATURE = 0x13
|
||||||
|
TCPOPT_TIMESTAMP = 0x8
|
||||||
|
TCPOPT_TSTAMP_HDR = 0x101080a
|
||||||
|
TCPOPT_WINDOW = 0x3
|
||||||
|
TCP_INFO = 0x9
|
||||||
TCP_MAXSEG = 0x2
|
TCP_MAXSEG = 0x2
|
||||||
TCP_MAXWIN = 0xffff
|
TCP_MAXWIN = 0xffff
|
||||||
TCP_MAX_SACK = 0x3
|
TCP_MAX_SACK = 0x3
|
||||||
@ -1379,8 +1506,11 @@ const (
|
|||||||
TCP_MSS = 0x200
|
TCP_MSS = 0x200
|
||||||
TCP_NODELAY = 0x1
|
TCP_NODELAY = 0x1
|
||||||
TCP_NOPUSH = 0x10
|
TCP_NOPUSH = 0x10
|
||||||
|
TCP_SACKHOLE_LIMIT = 0x80
|
||||||
TCP_SACK_ENABLE = 0x8
|
TCP_SACK_ENABLE = 0x8
|
||||||
TCSAFLUSH = 0x2
|
TCSAFLUSH = 0x2
|
||||||
|
TIMER_ABSTIME = 0x1
|
||||||
|
TIMER_RELTIME = 0x0
|
||||||
TIOCCBRK = 0x2000747a
|
TIOCCBRK = 0x2000747a
|
||||||
TIOCCDTR = 0x20007478
|
TIOCCDTR = 0x20007478
|
||||||
TIOCCHKVERAUTH = 0x2000741e
|
TIOCCHKVERAUTH = 0x2000741e
|
||||||
@ -1445,7 +1575,6 @@ const (
|
|||||||
TIOCSPGRP = 0x80047476
|
TIOCSPGRP = 0x80047476
|
||||||
TIOCSTART = 0x2000746e
|
TIOCSTART = 0x2000746e
|
||||||
TIOCSTAT = 0x20007465
|
TIOCSTAT = 0x20007465
|
||||||
TIOCSTI = 0x80017472
|
|
||||||
TIOCSTOP = 0x2000746f
|
TIOCSTOP = 0x2000746f
|
||||||
TIOCSTSTAMP = 0x8008745a
|
TIOCSTSTAMP = 0x8008745a
|
||||||
TIOCSWINSZ = 0x80087467
|
TIOCSWINSZ = 0x80087467
|
||||||
@ -1467,7 +1596,8 @@ const (
|
|||||||
VMIN = 0x10
|
VMIN = 0x10
|
||||||
VM_ANONMIN = 0x7
|
VM_ANONMIN = 0x7
|
||||||
VM_LOADAVG = 0x2
|
VM_LOADAVG = 0x2
|
||||||
VM_MAXID = 0xc
|
VM_MALLOC_CONF = 0xc
|
||||||
|
VM_MAXID = 0xd
|
||||||
VM_MAXSLP = 0xa
|
VM_MAXSLP = 0xa
|
||||||
VM_METER = 0x1
|
VM_METER = 0x1
|
||||||
VM_NKMEMPAGES = 0x6
|
VM_NKMEMPAGES = 0x6
|
||||||
@ -1745,7 +1875,7 @@ var signalList = [...]struct {
|
|||||||
{3, "SIGQUIT", "quit"},
|
{3, "SIGQUIT", "quit"},
|
||||||
{4, "SIGILL", "illegal instruction"},
|
{4, "SIGILL", "illegal instruction"},
|
||||||
{5, "SIGTRAP", "trace/BPT trap"},
|
{5, "SIGTRAP", "trace/BPT trap"},
|
||||||
{6, "SIGABRT", "abort trap"},
|
{6, "SIGIOT", "abort trap"},
|
||||||
{7, "SIGEMT", "EMT trap"},
|
{7, "SIGEMT", "EMT trap"},
|
||||||
{8, "SIGFPE", "floating point exception"},
|
{8, "SIGFPE", "floating point exception"},
|
||||||
{9, "SIGKILL", "killed"},
|
{9, "SIGKILL", "killed"},
|
||||||
@ -1772,4 +1902,5 @@ var signalList = [...]struct {
|
|||||||
{30, "SIGUSR1", "user defined signal 1"},
|
{30, "SIGUSR1", "user defined signal 1"},
|
||||||
{31, "SIGUSR2", "user defined signal 2"},
|
{31, "SIGUSR2", "user defined signal 2"},
|
||||||
{32, "SIGTHR", "thread AST"},
|
{32, "SIGTHR", "thread AST"},
|
||||||
|
{28672, "SIGSTKSZ", "unknown signal"},
|
||||||
}
|
}
|
||||||
|
348
gateway/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go
generated
vendored
348
gateway/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go
generated
vendored
@ -46,6 +46,7 @@ const (
|
|||||||
AF_SNA = 0xb
|
AF_SNA = 0xb
|
||||||
AF_UNIX = 0x1
|
AF_UNIX = 0x1
|
||||||
AF_UNSPEC = 0x0
|
AF_UNSPEC = 0x0
|
||||||
|
ALTWERASE = 0x200
|
||||||
ARPHRD_ETHER = 0x1
|
ARPHRD_ETHER = 0x1
|
||||||
ARPHRD_FRELAY = 0xf
|
ARPHRD_FRELAY = 0xf
|
||||||
ARPHRD_IEEE1394 = 0x18
|
ARPHRD_IEEE1394 = 0x18
|
||||||
@ -82,7 +83,7 @@ const (
|
|||||||
BIOCGFILDROP = 0x40044278
|
BIOCGFILDROP = 0x40044278
|
||||||
BIOCGHDRCMPLT = 0x40044274
|
BIOCGHDRCMPLT = 0x40044274
|
||||||
BIOCGRSIG = 0x40044273
|
BIOCGRSIG = 0x40044273
|
||||||
BIOCGRTIMEOUT = 0x400c426e
|
BIOCGRTIMEOUT = 0x4010426e
|
||||||
BIOCGSTATS = 0x4008426f
|
BIOCGSTATS = 0x4008426f
|
||||||
BIOCIMMEDIATE = 0x80044270
|
BIOCIMMEDIATE = 0x80044270
|
||||||
BIOCLOCK = 0x20004276
|
BIOCLOCK = 0x20004276
|
||||||
@ -96,7 +97,7 @@ const (
|
|||||||
BIOCSFILDROP = 0x80044279
|
BIOCSFILDROP = 0x80044279
|
||||||
BIOCSHDRCMPLT = 0x80044275
|
BIOCSHDRCMPLT = 0x80044275
|
||||||
BIOCSRSIG = 0x80044272
|
BIOCSRSIG = 0x80044272
|
||||||
BIOCSRTIMEOUT = 0x800c426d
|
BIOCSRTIMEOUT = 0x8010426d
|
||||||
BIOCVERSION = 0x40044271
|
BIOCVERSION = 0x40044271
|
||||||
BPF_A = 0x10
|
BPF_A = 0x10
|
||||||
BPF_ABS = 0x20
|
BPF_ABS = 0x20
|
||||||
@ -108,6 +109,15 @@ const (
|
|||||||
BPF_DIRECTION_IN = 0x1
|
BPF_DIRECTION_IN = 0x1
|
||||||
BPF_DIRECTION_OUT = 0x2
|
BPF_DIRECTION_OUT = 0x2
|
||||||
BPF_DIV = 0x30
|
BPF_DIV = 0x30
|
||||||
|
BPF_FILDROP_CAPTURE = 0x1
|
||||||
|
BPF_FILDROP_DROP = 0x2
|
||||||
|
BPF_FILDROP_PASS = 0x0
|
||||||
|
BPF_F_DIR_IN = 0x10
|
||||||
|
BPF_F_DIR_MASK = 0x30
|
||||||
|
BPF_F_DIR_OUT = 0x20
|
||||||
|
BPF_F_DIR_SHIFT = 0x4
|
||||||
|
BPF_F_FLOWID = 0x8
|
||||||
|
BPF_F_PRI_MASK = 0x7
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
@ -136,6 +146,7 @@ const (
|
|||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
BPF_RELEASE = 0x30bb6
|
BPF_RELEASE = 0x30bb6
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
|
BPF_RND = 0xc0
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
@ -147,6 +158,12 @@ const (
|
|||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
CLOCAL = 0x8000
|
CLOCAL = 0x8000
|
||||||
|
CLOCK_BOOTTIME = 0x6
|
||||||
|
CLOCK_MONOTONIC = 0x3
|
||||||
|
CLOCK_PROCESS_CPUTIME_ID = 0x2
|
||||||
|
CLOCK_REALTIME = 0x0
|
||||||
|
CLOCK_THREAD_CPUTIME_ID = 0x4
|
||||||
|
CLOCK_UPTIME = 0x5
|
||||||
CPUSTATES = 0x6
|
CPUSTATES = 0x6
|
||||||
CP_IDLE = 0x5
|
CP_IDLE = 0x5
|
||||||
CP_INTR = 0x4
|
CP_INTR = 0x4
|
||||||
@ -170,7 +187,65 @@ const (
|
|||||||
CTL_KERN = 0x1
|
CTL_KERN = 0x1
|
||||||
CTL_MAXNAME = 0xc
|
CTL_MAXNAME = 0xc
|
||||||
CTL_NET = 0x4
|
CTL_NET = 0x4
|
||||||
|
DIOCADDQUEUE = 0xc100445d
|
||||||
|
DIOCADDRULE = 0xcce04404
|
||||||
|
DIOCADDSTATE = 0xc1084425
|
||||||
|
DIOCCHANGERULE = 0xcce0441a
|
||||||
|
DIOCCLRIFFLAG = 0xc024445a
|
||||||
|
DIOCCLRSRCNODES = 0x20004455
|
||||||
|
DIOCCLRSTATES = 0xc0d04412
|
||||||
|
DIOCCLRSTATUS = 0xc0244416
|
||||||
|
DIOCGETLIMIT = 0xc0084427
|
||||||
|
DIOCGETQSTATS = 0xc1084460
|
||||||
|
DIOCGETQUEUE = 0xc100445f
|
||||||
|
DIOCGETQUEUES = 0xc100445e
|
||||||
|
DIOCGETRULE = 0xcce04407
|
||||||
|
DIOCGETRULES = 0xcce04406
|
||||||
|
DIOCGETRULESET = 0xc444443b
|
||||||
|
DIOCGETRULESETS = 0xc444443a
|
||||||
|
DIOCGETSRCNODES = 0xc0084454
|
||||||
|
DIOCGETSTATE = 0xc1084413
|
||||||
|
DIOCGETSTATES = 0xc0084419
|
||||||
|
DIOCGETSTATUS = 0xc1e84415
|
||||||
|
DIOCGETSYNFLWATS = 0xc0084463
|
||||||
|
DIOCGETTIMEOUT = 0xc008441e
|
||||||
|
DIOCIGETIFACES = 0xc0244457
|
||||||
|
DIOCKILLSRCNODES = 0xc068445b
|
||||||
|
DIOCKILLSTATES = 0xc0d04429
|
||||||
|
DIOCNATLOOK = 0xc0504417
|
||||||
|
DIOCOSFPADD = 0xc088444f
|
||||||
DIOCOSFPFLUSH = 0x2000444e
|
DIOCOSFPFLUSH = 0x2000444e
|
||||||
|
DIOCOSFPGET = 0xc0884450
|
||||||
|
DIOCRADDADDRS = 0xc44c4443
|
||||||
|
DIOCRADDTABLES = 0xc44c443d
|
||||||
|
DIOCRCLRADDRS = 0xc44c4442
|
||||||
|
DIOCRCLRASTATS = 0xc44c4448
|
||||||
|
DIOCRCLRTABLES = 0xc44c443c
|
||||||
|
DIOCRCLRTSTATS = 0xc44c4441
|
||||||
|
DIOCRDELADDRS = 0xc44c4444
|
||||||
|
DIOCRDELTABLES = 0xc44c443e
|
||||||
|
DIOCRGETADDRS = 0xc44c4446
|
||||||
|
DIOCRGETASTATS = 0xc44c4447
|
||||||
|
DIOCRGETTABLES = 0xc44c443f
|
||||||
|
DIOCRGETTSTATS = 0xc44c4440
|
||||||
|
DIOCRINADEFINE = 0xc44c444d
|
||||||
|
DIOCRSETADDRS = 0xc44c4445
|
||||||
|
DIOCRSETTFLAGS = 0xc44c444a
|
||||||
|
DIOCRTSTADDRS = 0xc44c4449
|
||||||
|
DIOCSETDEBUG = 0xc0044418
|
||||||
|
DIOCSETHOSTID = 0xc0044456
|
||||||
|
DIOCSETIFFLAG = 0xc0244459
|
||||||
|
DIOCSETLIMIT = 0xc0084428
|
||||||
|
DIOCSETREASS = 0xc004445c
|
||||||
|
DIOCSETSTATUSIF = 0xc0244414
|
||||||
|
DIOCSETSYNCOOKIES = 0xc0014462
|
||||||
|
DIOCSETSYNFLWATS = 0xc0084461
|
||||||
|
DIOCSETTIMEOUT = 0xc008441d
|
||||||
|
DIOCSTART = 0x20004401
|
||||||
|
DIOCSTOP = 0x20004402
|
||||||
|
DIOCXBEGIN = 0xc00c4451
|
||||||
|
DIOCXCOMMIT = 0xc00c4452
|
||||||
|
DIOCXROLLBACK = 0xc00c4453
|
||||||
DLT_ARCNET = 0x7
|
DLT_ARCNET = 0x7
|
||||||
DLT_ATM_RFC1483 = 0xb
|
DLT_ATM_RFC1483 = 0xb
|
||||||
DLT_AX25 = 0x3
|
DLT_AX25 = 0x3
|
||||||
@ -186,6 +261,7 @@ const (
|
|||||||
DLT_LOOP = 0xc
|
DLT_LOOP = 0xc
|
||||||
DLT_MPLS = 0xdb
|
DLT_MPLS = 0xdb
|
||||||
DLT_NULL = 0x0
|
DLT_NULL = 0x0
|
||||||
|
DLT_OPENFLOW = 0x10b
|
||||||
DLT_PFLOG = 0x75
|
DLT_PFLOG = 0x75
|
||||||
DLT_PFSYNC = 0x12
|
DLT_PFSYNC = 0x12
|
||||||
DLT_PPP = 0x9
|
DLT_PPP = 0x9
|
||||||
@ -196,6 +272,23 @@ const (
|
|||||||
DLT_RAW = 0xe
|
DLT_RAW = 0xe
|
||||||
DLT_SLIP = 0x8
|
DLT_SLIP = 0x8
|
||||||
DLT_SLIP_BSDOS = 0xf
|
DLT_SLIP_BSDOS = 0xf
|
||||||
|
DLT_USBPCAP = 0xf9
|
||||||
|
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
|
||||||
DT_BLK = 0x6
|
DT_BLK = 0x6
|
||||||
DT_CHR = 0x2
|
DT_CHR = 0x2
|
||||||
DT_DIR = 0x4
|
DT_DIR = 0x4
|
||||||
@ -215,6 +308,8 @@ const (
|
|||||||
EMUL_ENABLED = 0x1
|
EMUL_ENABLED = 0x1
|
||||||
EMUL_NATIVE = 0x2
|
EMUL_NATIVE = 0x2
|
||||||
ENDRUNDISC = 0x9
|
ENDRUNDISC = 0x9
|
||||||
|
ETH64_8021_RSVD_MASK = 0xfffffffffff0
|
||||||
|
ETH64_8021_RSVD_PREFIX = 0x180c2000000
|
||||||
ETHERMIN = 0x2e
|
ETHERMIN = 0x2e
|
||||||
ETHERMTU = 0x5dc
|
ETHERMTU = 0x5dc
|
||||||
ETHERTYPE_8023 = 0x4
|
ETHERTYPE_8023 = 0x4
|
||||||
@ -267,6 +362,7 @@ const (
|
|||||||
ETHERTYPE_DN = 0x6003
|
ETHERTYPE_DN = 0x6003
|
||||||
ETHERTYPE_DOGFIGHT = 0x1989
|
ETHERTYPE_DOGFIGHT = 0x1989
|
||||||
ETHERTYPE_DSMD = 0x8039
|
ETHERTYPE_DSMD = 0x8039
|
||||||
|
ETHERTYPE_EAPOL = 0x888e
|
||||||
ETHERTYPE_ECMA = 0x803
|
ETHERTYPE_ECMA = 0x803
|
||||||
ETHERTYPE_ENCRYPT = 0x803d
|
ETHERTYPE_ENCRYPT = 0x803d
|
||||||
ETHERTYPE_ES = 0x805d
|
ETHERTYPE_ES = 0x805d
|
||||||
@ -298,6 +394,7 @@ const (
|
|||||||
ETHERTYPE_LLDP = 0x88cc
|
ETHERTYPE_LLDP = 0x88cc
|
||||||
ETHERTYPE_LOGICRAFT = 0x8148
|
ETHERTYPE_LOGICRAFT = 0x8148
|
||||||
ETHERTYPE_LOOPBACK = 0x9000
|
ETHERTYPE_LOOPBACK = 0x9000
|
||||||
|
ETHERTYPE_MACSEC = 0x88e5
|
||||||
ETHERTYPE_MATRA = 0x807a
|
ETHERTYPE_MATRA = 0x807a
|
||||||
ETHERTYPE_MAX = 0xffff
|
ETHERTYPE_MAX = 0xffff
|
||||||
ETHERTYPE_MERIT = 0x807c
|
ETHERTYPE_MERIT = 0x807c
|
||||||
@ -326,15 +423,17 @@ const (
|
|||||||
ETHERTYPE_NCD = 0x8149
|
ETHERTYPE_NCD = 0x8149
|
||||||
ETHERTYPE_NESTAR = 0x8006
|
ETHERTYPE_NESTAR = 0x8006
|
||||||
ETHERTYPE_NETBEUI = 0x8191
|
ETHERTYPE_NETBEUI = 0x8191
|
||||||
|
ETHERTYPE_NHRP = 0x2001
|
||||||
ETHERTYPE_NOVELL = 0x8138
|
ETHERTYPE_NOVELL = 0x8138
|
||||||
ETHERTYPE_NS = 0x600
|
ETHERTYPE_NS = 0x600
|
||||||
ETHERTYPE_NSAT = 0x601
|
ETHERTYPE_NSAT = 0x601
|
||||||
ETHERTYPE_NSCOMPAT = 0x807
|
ETHERTYPE_NSCOMPAT = 0x807
|
||||||
|
ETHERTYPE_NSH = 0x984f
|
||||||
ETHERTYPE_NTRAILER = 0x10
|
ETHERTYPE_NTRAILER = 0x10
|
||||||
ETHERTYPE_OS9 = 0x7007
|
ETHERTYPE_OS9 = 0x7007
|
||||||
ETHERTYPE_OS9NET = 0x7009
|
ETHERTYPE_OS9NET = 0x7009
|
||||||
ETHERTYPE_PACER = 0x80c6
|
ETHERTYPE_PACER = 0x80c6
|
||||||
ETHERTYPE_PAE = 0x888e
|
ETHERTYPE_PBB = 0x88e7
|
||||||
ETHERTYPE_PCS = 0x4242
|
ETHERTYPE_PCS = 0x4242
|
||||||
ETHERTYPE_PLANNING = 0x8044
|
ETHERTYPE_PLANNING = 0x8044
|
||||||
ETHERTYPE_PPP = 0x880b
|
ETHERTYPE_PPP = 0x880b
|
||||||
@ -409,28 +508,40 @@ const (
|
|||||||
ETHER_CRC_POLY_LE = 0xedb88320
|
ETHER_CRC_POLY_LE = 0xedb88320
|
||||||
ETHER_HDR_LEN = 0xe
|
ETHER_HDR_LEN = 0xe
|
||||||
ETHER_MAX_DIX_LEN = 0x600
|
ETHER_MAX_DIX_LEN = 0x600
|
||||||
|
ETHER_MAX_HARDMTU_LEN = 0xff9b
|
||||||
ETHER_MAX_LEN = 0x5ee
|
ETHER_MAX_LEN = 0x5ee
|
||||||
ETHER_MIN_LEN = 0x40
|
ETHER_MIN_LEN = 0x40
|
||||||
ETHER_TYPE_LEN = 0x2
|
ETHER_TYPE_LEN = 0x2
|
||||||
ETHER_VLAN_ENCAP_LEN = 0x4
|
ETHER_VLAN_ENCAP_LEN = 0x4
|
||||||
EVFILT_AIO = -0x3
|
EVFILT_AIO = -0x3
|
||||||
|
EVFILT_DEVICE = -0x8
|
||||||
|
EVFILT_EXCEPT = -0x9
|
||||||
EVFILT_PROC = -0x5
|
EVFILT_PROC = -0x5
|
||||||
EVFILT_READ = -0x1
|
EVFILT_READ = -0x1
|
||||||
EVFILT_SIGNAL = -0x6
|
EVFILT_SIGNAL = -0x6
|
||||||
EVFILT_SYSCOUNT = 0x7
|
EVFILT_SYSCOUNT = 0x9
|
||||||
EVFILT_TIMER = -0x7
|
EVFILT_TIMER = -0x7
|
||||||
EVFILT_VNODE = -0x4
|
EVFILT_VNODE = -0x4
|
||||||
EVFILT_WRITE = -0x2
|
EVFILT_WRITE = -0x2
|
||||||
|
EVL_ENCAPLEN = 0x4
|
||||||
|
EVL_PRIO_BITS = 0xd
|
||||||
|
EVL_PRIO_MAX = 0x7
|
||||||
|
EVL_VLID_MASK = 0xfff
|
||||||
|
EVL_VLID_MAX = 0xffe
|
||||||
|
EVL_VLID_MIN = 0x1
|
||||||
|
EVL_VLID_NULL = 0x0
|
||||||
EV_ADD = 0x1
|
EV_ADD = 0x1
|
||||||
EV_CLEAR = 0x20
|
EV_CLEAR = 0x20
|
||||||
EV_DELETE = 0x2
|
EV_DELETE = 0x2
|
||||||
EV_DISABLE = 0x8
|
EV_DISABLE = 0x8
|
||||||
|
EV_DISPATCH = 0x80
|
||||||
EV_ENABLE = 0x4
|
EV_ENABLE = 0x4
|
||||||
EV_EOF = 0x8000
|
EV_EOF = 0x8000
|
||||||
EV_ERROR = 0x4000
|
EV_ERROR = 0x4000
|
||||||
EV_FLAG1 = 0x2000
|
EV_FLAG1 = 0x2000
|
||||||
EV_ONESHOT = 0x10
|
EV_ONESHOT = 0x10
|
||||||
EV_SYSFLAGS = 0xf000
|
EV_RECEIPT = 0x40
|
||||||
|
EV_SYSFLAGS = 0xf800
|
||||||
EXTA = 0x4b00
|
EXTA = 0x4b00
|
||||||
EXTB = 0x9600
|
EXTB = 0x9600
|
||||||
EXTPROC = 0x800
|
EXTPROC = 0x800
|
||||||
@ -443,6 +554,8 @@ const (
|
|||||||
F_GETFL = 0x3
|
F_GETFL = 0x3
|
||||||
F_GETLK = 0x7
|
F_GETLK = 0x7
|
||||||
F_GETOWN = 0x5
|
F_GETOWN = 0x5
|
||||||
|
F_ISATTY = 0xb
|
||||||
|
F_OK = 0x0
|
||||||
F_RDLCK = 0x1
|
F_RDLCK = 0x1
|
||||||
F_SETFD = 0x2
|
F_SETFD = 0x2
|
||||||
F_SETFL = 0x4
|
F_SETFL = 0x4
|
||||||
@ -459,7 +572,6 @@ const (
|
|||||||
IEXTEN = 0x400
|
IEXTEN = 0x400
|
||||||
IFAN_ARRIVAL = 0x0
|
IFAN_ARRIVAL = 0x0
|
||||||
IFAN_DEPARTURE = 0x1
|
IFAN_DEPARTURE = 0x1
|
||||||
IFA_ROUTE = 0x1
|
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_BROADCAST = 0x2
|
IFF_BROADCAST = 0x2
|
||||||
IFF_CANTCHANGE = 0x8e52
|
IFF_CANTCHANGE = 0x8e52
|
||||||
@ -470,12 +582,12 @@ const (
|
|||||||
IFF_LOOPBACK = 0x8
|
IFF_LOOPBACK = 0x8
|
||||||
IFF_MULTICAST = 0x8000
|
IFF_MULTICAST = 0x8000
|
||||||
IFF_NOARP = 0x80
|
IFF_NOARP = 0x80
|
||||||
IFF_NOTRAILERS = 0x20
|
|
||||||
IFF_OACTIVE = 0x400
|
IFF_OACTIVE = 0x400
|
||||||
IFF_POINTOPOINT = 0x10
|
IFF_POINTOPOINT = 0x10
|
||||||
IFF_PROMISC = 0x100
|
IFF_PROMISC = 0x100
|
||||||
IFF_RUNNING = 0x40
|
IFF_RUNNING = 0x40
|
||||||
IFF_SIMPLEX = 0x800
|
IFF_SIMPLEX = 0x800
|
||||||
|
IFF_STATICARP = 0x20
|
||||||
IFF_UP = 0x1
|
IFF_UP = 0x1
|
||||||
IFNAMSIZ = 0x10
|
IFNAMSIZ = 0x10
|
||||||
IFT_1822 = 0x2
|
IFT_1822 = 0x2
|
||||||
@ -604,6 +716,7 @@ const (
|
|||||||
IFT_LINEGROUP = 0xd2
|
IFT_LINEGROUP = 0xd2
|
||||||
IFT_LOCALTALK = 0x2a
|
IFT_LOCALTALK = 0x2a
|
||||||
IFT_LOOP = 0x18
|
IFT_LOOP = 0x18
|
||||||
|
IFT_MBIM = 0xfa
|
||||||
IFT_MEDIAMAILOVERIP = 0x8b
|
IFT_MEDIAMAILOVERIP = 0x8b
|
||||||
IFT_MFSIGLINK = 0xa7
|
IFT_MFSIGLINK = 0xa7
|
||||||
IFT_MIOX25 = 0x26
|
IFT_MIOX25 = 0x26
|
||||||
@ -694,6 +807,7 @@ const (
|
|||||||
IFT_VOICEOVERCABLE = 0xc6
|
IFT_VOICEOVERCABLE = 0xc6
|
||||||
IFT_VOICEOVERFRAMERELAY = 0x99
|
IFT_VOICEOVERFRAMERELAY = 0x99
|
||||||
IFT_VOICEOVERIP = 0x68
|
IFT_VOICEOVERIP = 0x68
|
||||||
|
IFT_WIREGUARD = 0xfb
|
||||||
IFT_X213 = 0x5d
|
IFT_X213 = 0x5d
|
||||||
IFT_X25 = 0x5
|
IFT_X25 = 0x5
|
||||||
IFT_X25DDN = 0x4
|
IFT_X25DDN = 0x4
|
||||||
@ -728,8 +842,6 @@ const (
|
|||||||
IPPROTO_AH = 0x33
|
IPPROTO_AH = 0x33
|
||||||
IPPROTO_CARP = 0x70
|
IPPROTO_CARP = 0x70
|
||||||
IPPROTO_DIVERT = 0x102
|
IPPROTO_DIVERT = 0x102
|
||||||
IPPROTO_DIVERT_INIT = 0x2
|
|
||||||
IPPROTO_DIVERT_RESP = 0x1
|
|
||||||
IPPROTO_DONE = 0x101
|
IPPROTO_DONE = 0x101
|
||||||
IPPROTO_DSTOPTS = 0x3c
|
IPPROTO_DSTOPTS = 0x3c
|
||||||
IPPROTO_EGP = 0x8
|
IPPROTO_EGP = 0x8
|
||||||
@ -761,9 +873,11 @@ const (
|
|||||||
IPPROTO_RAW = 0xff
|
IPPROTO_RAW = 0xff
|
||||||
IPPROTO_ROUTING = 0x2b
|
IPPROTO_ROUTING = 0x2b
|
||||||
IPPROTO_RSVP = 0x2e
|
IPPROTO_RSVP = 0x2e
|
||||||
|
IPPROTO_SCTP = 0x84
|
||||||
IPPROTO_TCP = 0x6
|
IPPROTO_TCP = 0x6
|
||||||
IPPROTO_TP = 0x1d
|
IPPROTO_TP = 0x1d
|
||||||
IPPROTO_UDP = 0x11
|
IPPROTO_UDP = 0x11
|
||||||
|
IPPROTO_UDPLITE = 0x88
|
||||||
IPV6_AUTH_LEVEL = 0x35
|
IPV6_AUTH_LEVEL = 0x35
|
||||||
IPV6_AUTOFLOWLABEL = 0x3b
|
IPV6_AUTOFLOWLABEL = 0x3b
|
||||||
IPV6_CHECKSUM = 0x1a
|
IPV6_CHECKSUM = 0x1a
|
||||||
@ -786,6 +900,7 @@ const (
|
|||||||
IPV6_LEAVE_GROUP = 0xd
|
IPV6_LEAVE_GROUP = 0xd
|
||||||
IPV6_MAXHLIM = 0xff
|
IPV6_MAXHLIM = 0xff
|
||||||
IPV6_MAXPACKET = 0xffff
|
IPV6_MAXPACKET = 0xffff
|
||||||
|
IPV6_MINHOPCOUNT = 0x41
|
||||||
IPV6_MMTU = 0x500
|
IPV6_MMTU = 0x500
|
||||||
IPV6_MULTICAST_HOPS = 0xa
|
IPV6_MULTICAST_HOPS = 0xa
|
||||||
IPV6_MULTICAST_IF = 0x9
|
IPV6_MULTICAST_IF = 0x9
|
||||||
@ -825,12 +940,12 @@ const (
|
|||||||
IP_DEFAULT_MULTICAST_LOOP = 0x1
|
IP_DEFAULT_MULTICAST_LOOP = 0x1
|
||||||
IP_DEFAULT_MULTICAST_TTL = 0x1
|
IP_DEFAULT_MULTICAST_TTL = 0x1
|
||||||
IP_DF = 0x4000
|
IP_DF = 0x4000
|
||||||
IP_DIVERTFL = 0x1022
|
|
||||||
IP_DROP_MEMBERSHIP = 0xd
|
IP_DROP_MEMBERSHIP = 0xd
|
||||||
IP_ESP_NETWORK_LEVEL = 0x16
|
IP_ESP_NETWORK_LEVEL = 0x16
|
||||||
IP_ESP_TRANS_LEVEL = 0x15
|
IP_ESP_TRANS_LEVEL = 0x15
|
||||||
IP_HDRINCL = 0x2
|
IP_HDRINCL = 0x2
|
||||||
IP_IPCOMP_LEVEL = 0x1d
|
IP_IPCOMP_LEVEL = 0x1d
|
||||||
|
IP_IPDEFTTL = 0x25
|
||||||
IP_IPSECFLOWINFO = 0x24
|
IP_IPSECFLOWINFO = 0x24
|
||||||
IP_IPSEC_LOCAL_AUTH = 0x1b
|
IP_IPSEC_LOCAL_AUTH = 0x1b
|
||||||
IP_IPSEC_LOCAL_CRED = 0x19
|
IP_IPSEC_LOCAL_CRED = 0x19
|
||||||
@ -864,10 +979,15 @@ const (
|
|||||||
IP_RETOPTS = 0x8
|
IP_RETOPTS = 0x8
|
||||||
IP_RF = 0x8000
|
IP_RF = 0x8000
|
||||||
IP_RTABLE = 0x1021
|
IP_RTABLE = 0x1021
|
||||||
|
IP_SENDSRCADDR = 0x7
|
||||||
IP_TOS = 0x3
|
IP_TOS = 0x3
|
||||||
IP_TTL = 0x4
|
IP_TTL = 0x4
|
||||||
ISIG = 0x80
|
ISIG = 0x80
|
||||||
ISTRIP = 0x20
|
ISTRIP = 0x20
|
||||||
|
ITIMER_PROF = 0x2
|
||||||
|
ITIMER_REAL = 0x0
|
||||||
|
ITIMER_VIRTUAL = 0x1
|
||||||
|
IUCLC = 0x1000
|
||||||
IXANY = 0x800
|
IXANY = 0x800
|
||||||
IXOFF = 0x400
|
IXOFF = 0x400
|
||||||
IXON = 0x200
|
IXON = 0x200
|
||||||
@ -922,6 +1042,7 @@ const (
|
|||||||
MNT_NOATIME = 0x8000
|
MNT_NOATIME = 0x8000
|
||||||
MNT_NODEV = 0x10
|
MNT_NODEV = 0x10
|
||||||
MNT_NOEXEC = 0x4
|
MNT_NOEXEC = 0x4
|
||||||
|
MNT_NOPERM = 0x20
|
||||||
MNT_NOSUID = 0x8
|
MNT_NOSUID = 0x8
|
||||||
MNT_NOWAIT = 0x2
|
MNT_NOWAIT = 0x2
|
||||||
MNT_QUOTA = 0x2000
|
MNT_QUOTA = 0x2000
|
||||||
@ -929,12 +1050,27 @@ const (
|
|||||||
MNT_RELOAD = 0x40000
|
MNT_RELOAD = 0x40000
|
||||||
MNT_ROOTFS = 0x4000
|
MNT_ROOTFS = 0x4000
|
||||||
MNT_SOFTDEP = 0x4000000
|
MNT_SOFTDEP = 0x4000000
|
||||||
|
MNT_STALLED = 0x100000
|
||||||
|
MNT_SWAPPABLE = 0x200000
|
||||||
MNT_SYNCHRONOUS = 0x2
|
MNT_SYNCHRONOUS = 0x2
|
||||||
MNT_UPDATE = 0x10000
|
MNT_UPDATE = 0x10000
|
||||||
MNT_VISFLAGMASK = 0x400ffff
|
MNT_VISFLAGMASK = 0x400ffff
|
||||||
MNT_WAIT = 0x1
|
MNT_WAIT = 0x1
|
||||||
MNT_WANTRDWR = 0x2000000
|
MNT_WANTRDWR = 0x2000000
|
||||||
MNT_WXALLOWED = 0x800
|
MNT_WXALLOWED = 0x800
|
||||||
|
MOUNT_AFS = "afs"
|
||||||
|
MOUNT_CD9660 = "cd9660"
|
||||||
|
MOUNT_EXT2FS = "ext2fs"
|
||||||
|
MOUNT_FFS = "ffs"
|
||||||
|
MOUNT_FUSEFS = "fuse"
|
||||||
|
MOUNT_MFS = "mfs"
|
||||||
|
MOUNT_MSDOS = "msdos"
|
||||||
|
MOUNT_NCPFS = "ncpfs"
|
||||||
|
MOUNT_NFS = "nfs"
|
||||||
|
MOUNT_NTFS = "ntfs"
|
||||||
|
MOUNT_TMPFS = "tmpfs"
|
||||||
|
MOUNT_UDF = "udf"
|
||||||
|
MOUNT_UFS = "ffs"
|
||||||
MSG_BCAST = 0x100
|
MSG_BCAST = 0x100
|
||||||
MSG_CMSG_CLOEXEC = 0x800
|
MSG_CMSG_CLOEXEC = 0x800
|
||||||
MSG_CTRUNC = 0x20
|
MSG_CTRUNC = 0x20
|
||||||
@ -947,6 +1083,7 @@ const (
|
|||||||
MSG_PEEK = 0x2
|
MSG_PEEK = 0x2
|
||||||
MSG_TRUNC = 0x10
|
MSG_TRUNC = 0x10
|
||||||
MSG_WAITALL = 0x40
|
MSG_WAITALL = 0x40
|
||||||
|
MSG_WAITFORONE = 0x1000
|
||||||
MS_ASYNC = 0x1
|
MS_ASYNC = 0x1
|
||||||
MS_INVALIDATE = 0x4
|
MS_INVALIDATE = 0x4
|
||||||
MS_SYNC = 0x2
|
MS_SYNC = 0x2
|
||||||
@ -954,12 +1091,16 @@ const (
|
|||||||
NET_RT_DUMP = 0x1
|
NET_RT_DUMP = 0x1
|
||||||
NET_RT_FLAGS = 0x2
|
NET_RT_FLAGS = 0x2
|
||||||
NET_RT_IFLIST = 0x3
|
NET_RT_IFLIST = 0x3
|
||||||
NET_RT_MAXID = 0x6
|
NET_RT_IFNAMES = 0x6
|
||||||
|
NET_RT_MAXID = 0x8
|
||||||
|
NET_RT_SOURCE = 0x7
|
||||||
NET_RT_STATS = 0x4
|
NET_RT_STATS = 0x4
|
||||||
NET_RT_TABLE = 0x5
|
NET_RT_TABLE = 0x5
|
||||||
NFDBITS = 0x20
|
NFDBITS = 0x20
|
||||||
NOFLSH = 0x80000000
|
NOFLSH = 0x80000000
|
||||||
|
NOKERNINFO = 0x2000000
|
||||||
NOTE_ATTRIB = 0x8
|
NOTE_ATTRIB = 0x8
|
||||||
|
NOTE_CHANGE = 0x1
|
||||||
NOTE_CHILD = 0x4
|
NOTE_CHILD = 0x4
|
||||||
NOTE_DELETE = 0x1
|
NOTE_DELETE = 0x1
|
||||||
NOTE_EOF = 0x2
|
NOTE_EOF = 0x2
|
||||||
@ -969,6 +1110,7 @@ const (
|
|||||||
NOTE_FORK = 0x40000000
|
NOTE_FORK = 0x40000000
|
||||||
NOTE_LINK = 0x10
|
NOTE_LINK = 0x10
|
||||||
NOTE_LOWAT = 0x1
|
NOTE_LOWAT = 0x1
|
||||||
|
NOTE_OOB = 0x4
|
||||||
NOTE_PCTRLMASK = 0xf0000000
|
NOTE_PCTRLMASK = 0xf0000000
|
||||||
NOTE_PDATAMASK = 0xfffff
|
NOTE_PDATAMASK = 0xfffff
|
||||||
NOTE_RENAME = 0x20
|
NOTE_RENAME = 0x20
|
||||||
@ -978,11 +1120,13 @@ const (
|
|||||||
NOTE_TRUNCATE = 0x80
|
NOTE_TRUNCATE = 0x80
|
||||||
NOTE_WRITE = 0x2
|
NOTE_WRITE = 0x2
|
||||||
OCRNL = 0x10
|
OCRNL = 0x10
|
||||||
|
OLCUC = 0x20
|
||||||
ONLCR = 0x2
|
ONLCR = 0x2
|
||||||
ONLRET = 0x80
|
ONLRET = 0x80
|
||||||
ONOCR = 0x40
|
ONOCR = 0x40
|
||||||
ONOEOT = 0x8
|
ONOEOT = 0x8
|
||||||
OPOST = 0x1
|
OPOST = 0x1
|
||||||
|
OXTABS = 0x4
|
||||||
O_ACCMODE = 0x3
|
O_ACCMODE = 0x3
|
||||||
O_APPEND = 0x8
|
O_APPEND = 0x8
|
||||||
O_ASYNC = 0x40
|
O_ASYNC = 0x40
|
||||||
@ -1027,19 +1171,25 @@ const (
|
|||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = 0x7fffffffffffffff
|
RLIM_INFINITY = 0x7fffffffffffffff
|
||||||
RTAX_AUTHOR = 0x6
|
RTAX_AUTHOR = 0x6
|
||||||
|
RTAX_BFD = 0xb
|
||||||
RTAX_BRD = 0x7
|
RTAX_BRD = 0x7
|
||||||
|
RTAX_DNS = 0xc
|
||||||
RTAX_DST = 0x0
|
RTAX_DST = 0x0
|
||||||
RTAX_GATEWAY = 0x1
|
RTAX_GATEWAY = 0x1
|
||||||
RTAX_GENMASK = 0x3
|
RTAX_GENMASK = 0x3
|
||||||
RTAX_IFA = 0x5
|
RTAX_IFA = 0x5
|
||||||
RTAX_IFP = 0x4
|
RTAX_IFP = 0x4
|
||||||
RTAX_LABEL = 0xa
|
RTAX_LABEL = 0xa
|
||||||
RTAX_MAX = 0xb
|
RTAX_MAX = 0xf
|
||||||
RTAX_NETMASK = 0x2
|
RTAX_NETMASK = 0x2
|
||||||
|
RTAX_SEARCH = 0xe
|
||||||
RTAX_SRC = 0x8
|
RTAX_SRC = 0x8
|
||||||
RTAX_SRCMASK = 0x9
|
RTAX_SRCMASK = 0x9
|
||||||
|
RTAX_STATIC = 0xd
|
||||||
RTA_AUTHOR = 0x40
|
RTA_AUTHOR = 0x40
|
||||||
|
RTA_BFD = 0x800
|
||||||
RTA_BRD = 0x80
|
RTA_BRD = 0x80
|
||||||
|
RTA_DNS = 0x1000
|
||||||
RTA_DST = 0x1
|
RTA_DST = 0x1
|
||||||
RTA_GATEWAY = 0x2
|
RTA_GATEWAY = 0x2
|
||||||
RTA_GENMASK = 0x8
|
RTA_GENMASK = 0x8
|
||||||
@ -1047,24 +1197,29 @@ const (
|
|||||||
RTA_IFP = 0x10
|
RTA_IFP = 0x10
|
||||||
RTA_LABEL = 0x400
|
RTA_LABEL = 0x400
|
||||||
RTA_NETMASK = 0x4
|
RTA_NETMASK = 0x4
|
||||||
|
RTA_SEARCH = 0x4000
|
||||||
RTA_SRC = 0x100
|
RTA_SRC = 0x100
|
||||||
RTA_SRCMASK = 0x200
|
RTA_SRCMASK = 0x200
|
||||||
|
RTA_STATIC = 0x2000
|
||||||
RTF_ANNOUNCE = 0x4000
|
RTF_ANNOUNCE = 0x4000
|
||||||
|
RTF_BFD = 0x1000000
|
||||||
RTF_BLACKHOLE = 0x1000
|
RTF_BLACKHOLE = 0x1000
|
||||||
RTF_BROADCAST = 0x400000
|
RTF_BROADCAST = 0x400000
|
||||||
|
RTF_CACHED = 0x20000
|
||||||
RTF_CLONED = 0x10000
|
RTF_CLONED = 0x10000
|
||||||
RTF_CLONING = 0x100
|
RTF_CLONING = 0x100
|
||||||
|
RTF_CONNECTED = 0x800000
|
||||||
RTF_DONE = 0x40
|
RTF_DONE = 0x40
|
||||||
RTF_DYNAMIC = 0x10
|
RTF_DYNAMIC = 0x10
|
||||||
RTF_FMASK = 0x70f808
|
RTF_FMASK = 0x110fc08
|
||||||
RTF_GATEWAY = 0x2
|
RTF_GATEWAY = 0x2
|
||||||
RTF_HOST = 0x4
|
RTF_HOST = 0x4
|
||||||
RTF_LLINFO = 0x400
|
RTF_LLINFO = 0x400
|
||||||
RTF_LOCAL = 0x200000
|
RTF_LOCAL = 0x200000
|
||||||
RTF_MASK = 0x80
|
|
||||||
RTF_MODIFIED = 0x20
|
RTF_MODIFIED = 0x20
|
||||||
RTF_MPATH = 0x40000
|
RTF_MPATH = 0x40000
|
||||||
RTF_MPLS = 0x100000
|
RTF_MPLS = 0x100000
|
||||||
|
RTF_MULTICAST = 0x200
|
||||||
RTF_PERMANENT_ARP = 0x2000
|
RTF_PERMANENT_ARP = 0x2000
|
||||||
RTF_PROTO1 = 0x8000
|
RTF_PROTO1 = 0x8000
|
||||||
RTF_PROTO2 = 0x4000
|
RTF_PROTO2 = 0x4000
|
||||||
@ -1073,23 +1228,26 @@ const (
|
|||||||
RTF_STATIC = 0x800
|
RTF_STATIC = 0x800
|
||||||
RTF_UP = 0x1
|
RTF_UP = 0x1
|
||||||
RTF_USETRAILERS = 0x8000
|
RTF_USETRAILERS = 0x8000
|
||||||
RTF_XRESOLVE = 0x200
|
RTM_80211INFO = 0x15
|
||||||
RTM_ADD = 0x1
|
RTM_ADD = 0x1
|
||||||
|
RTM_BFD = 0x12
|
||||||
RTM_CHANGE = 0x3
|
RTM_CHANGE = 0x3
|
||||||
|
RTM_CHGADDRATTR = 0x14
|
||||||
RTM_DELADDR = 0xd
|
RTM_DELADDR = 0xd
|
||||||
RTM_DELETE = 0x2
|
RTM_DELETE = 0x2
|
||||||
RTM_DESYNC = 0x10
|
RTM_DESYNC = 0x10
|
||||||
RTM_GET = 0x4
|
RTM_GET = 0x4
|
||||||
RTM_IFANNOUNCE = 0xf
|
RTM_IFANNOUNCE = 0xf
|
||||||
RTM_IFINFO = 0xe
|
RTM_IFINFO = 0xe
|
||||||
RTM_LOCK = 0x8
|
RTM_INVALIDATE = 0x11
|
||||||
RTM_LOSING = 0x5
|
RTM_LOSING = 0x5
|
||||||
RTM_MAXSIZE = 0x800
|
RTM_MAXSIZE = 0x800
|
||||||
RTM_MISS = 0x7
|
RTM_MISS = 0x7
|
||||||
RTM_NEWADDR = 0xc
|
RTM_NEWADDR = 0xc
|
||||||
|
RTM_PROPOSAL = 0x13
|
||||||
RTM_REDIRECT = 0x6
|
RTM_REDIRECT = 0x6
|
||||||
RTM_RESOLVE = 0xb
|
RTM_RESOLVE = 0xb
|
||||||
RTM_RTTUNIT = 0xf4240
|
RTM_SOURCE = 0x16
|
||||||
RTM_VERSION = 0x5
|
RTM_VERSION = 0x5
|
||||||
RTV_EXPIRE = 0x4
|
RTV_EXPIRE = 0x4
|
||||||
RTV_HOPCOUNT = 0x2
|
RTV_HOPCOUNT = 0x2
|
||||||
@ -1099,67 +1257,74 @@ const (
|
|||||||
RTV_RTTVAR = 0x80
|
RTV_RTTVAR = 0x80
|
||||||
RTV_SPIPE = 0x10
|
RTV_SPIPE = 0x10
|
||||||
RTV_SSTHRESH = 0x20
|
RTV_SSTHRESH = 0x20
|
||||||
|
RT_TABLEID_BITS = 0x8
|
||||||
|
RT_TABLEID_MASK = 0xff
|
||||||
RT_TABLEID_MAX = 0xff
|
RT_TABLEID_MAX = 0xff
|
||||||
RUSAGE_CHILDREN = -0x1
|
RUSAGE_CHILDREN = -0x1
|
||||||
RUSAGE_SELF = 0x0
|
RUSAGE_SELF = 0x0
|
||||||
RUSAGE_THREAD = 0x1
|
RUSAGE_THREAD = 0x1
|
||||||
SCM_RIGHTS = 0x1
|
SCM_RIGHTS = 0x1
|
||||||
SCM_TIMESTAMP = 0x4
|
SCM_TIMESTAMP = 0x4
|
||||||
|
SEEK_CUR = 0x1
|
||||||
|
SEEK_END = 0x2
|
||||||
|
SEEK_SET = 0x0
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
SIOCADDMULTI = 0x80206931
|
SIOCADDMULTI = 0x80206931
|
||||||
SIOCAIFADDR = 0x8040691a
|
SIOCAIFADDR = 0x8040691a
|
||||||
SIOCAIFGROUP = 0x80246987
|
SIOCAIFGROUP = 0x80246987
|
||||||
SIOCALIFADDR = 0x8218691c
|
|
||||||
SIOCATMARK = 0x40047307
|
SIOCATMARK = 0x40047307
|
||||||
SIOCBRDGADD = 0x8054693c
|
SIOCBRDGADD = 0x8060693c
|
||||||
SIOCBRDGADDS = 0x80546941
|
SIOCBRDGADDL = 0x80606949
|
||||||
SIOCBRDGARL = 0x806e694d
|
SIOCBRDGADDS = 0x80606941
|
||||||
|
SIOCBRDGARL = 0x808c694d
|
||||||
SIOCBRDGDADDR = 0x81286947
|
SIOCBRDGDADDR = 0x81286947
|
||||||
SIOCBRDGDEL = 0x8054693d
|
SIOCBRDGDEL = 0x8060693d
|
||||||
SIOCBRDGDELS = 0x80546942
|
SIOCBRDGDELS = 0x80606942
|
||||||
SIOCBRDGFLUSH = 0x80546948
|
SIOCBRDGFLUSH = 0x80606948
|
||||||
SIOCBRDGFRL = 0x806e694e
|
SIOCBRDGFRL = 0x808c694e
|
||||||
SIOCBRDGGCACHE = 0xc0146941
|
SIOCBRDGGCACHE = 0xc0146941
|
||||||
SIOCBRDGGFD = 0xc0146952
|
SIOCBRDGGFD = 0xc0146952
|
||||||
SIOCBRDGGHT = 0xc0146951
|
SIOCBRDGGHT = 0xc0146951
|
||||||
SIOCBRDGGIFFLGS = 0xc054693e
|
SIOCBRDGGIFFLGS = 0xc060693e
|
||||||
SIOCBRDGGMA = 0xc0146953
|
SIOCBRDGGMA = 0xc0146953
|
||||||
SIOCBRDGGPARAM = 0xc03c6958
|
SIOCBRDGGPARAM = 0xc0406958
|
||||||
SIOCBRDGGPRI = 0xc0146950
|
SIOCBRDGGPRI = 0xc0146950
|
||||||
SIOCBRDGGRL = 0xc028694f
|
SIOCBRDGGRL = 0xc028694f
|
||||||
SIOCBRDGGSIFS = 0xc054693c
|
|
||||||
SIOCBRDGGTO = 0xc0146946
|
SIOCBRDGGTO = 0xc0146946
|
||||||
SIOCBRDGIFS = 0xc0546942
|
SIOCBRDGIFS = 0xc0606942
|
||||||
SIOCBRDGRTS = 0xc0186943
|
SIOCBRDGRTS = 0xc0186943
|
||||||
SIOCBRDGSADDR = 0xc1286944
|
SIOCBRDGSADDR = 0xc1286944
|
||||||
SIOCBRDGSCACHE = 0x80146940
|
SIOCBRDGSCACHE = 0x80146940
|
||||||
SIOCBRDGSFD = 0x80146952
|
SIOCBRDGSFD = 0x80146952
|
||||||
SIOCBRDGSHT = 0x80146951
|
SIOCBRDGSHT = 0x80146951
|
||||||
SIOCBRDGSIFCOST = 0x80546955
|
SIOCBRDGSIFCOST = 0x80606955
|
||||||
SIOCBRDGSIFFLGS = 0x8054693f
|
SIOCBRDGSIFFLGS = 0x8060693f
|
||||||
SIOCBRDGSIFPRIO = 0x80546954
|
SIOCBRDGSIFPRIO = 0x80606954
|
||||||
|
SIOCBRDGSIFPROT = 0x8060694a
|
||||||
SIOCBRDGSMA = 0x80146953
|
SIOCBRDGSMA = 0x80146953
|
||||||
SIOCBRDGSPRI = 0x80146950
|
SIOCBRDGSPRI = 0x80146950
|
||||||
SIOCBRDGSPROTO = 0x8014695a
|
SIOCBRDGSPROTO = 0x8014695a
|
||||||
SIOCBRDGSTO = 0x80146945
|
SIOCBRDGSTO = 0x80146945
|
||||||
SIOCBRDGSTXHC = 0x80146959
|
SIOCBRDGSTXHC = 0x80146959
|
||||||
|
SIOCDELLABEL = 0x80206997
|
||||||
SIOCDELMULTI = 0x80206932
|
SIOCDELMULTI = 0x80206932
|
||||||
SIOCDIFADDR = 0x80206919
|
SIOCDIFADDR = 0x80206919
|
||||||
SIOCDIFGROUP = 0x80246989
|
SIOCDIFGROUP = 0x80246989
|
||||||
|
SIOCDIFPARENT = 0x802069b4
|
||||||
SIOCDIFPHYADDR = 0x80206949
|
SIOCDIFPHYADDR = 0x80206949
|
||||||
SIOCDLIFADDR = 0x8218691e
|
SIOCDPWE3NEIGHBOR = 0x802069de
|
||||||
|
SIOCDVNETID = 0x802069af
|
||||||
SIOCGETKALIVE = 0xc01869a4
|
SIOCGETKALIVE = 0xc01869a4
|
||||||
SIOCGETLABEL = 0x8020699a
|
SIOCGETLABEL = 0x8020699a
|
||||||
|
SIOCGETMPWCFG = 0xc02069ae
|
||||||
SIOCGETPFLOW = 0xc02069fe
|
SIOCGETPFLOW = 0xc02069fe
|
||||||
SIOCGETPFSYNC = 0xc02069f8
|
SIOCGETPFSYNC = 0xc02069f8
|
||||||
SIOCGETSGCNT = 0xc0147534
|
SIOCGETSGCNT = 0xc0147534
|
||||||
SIOCGETVIFCNT = 0xc0147533
|
SIOCGETVIFCNT = 0xc0147533
|
||||||
SIOCGETVLAN = 0xc0206990
|
SIOCGETVLAN = 0xc0206990
|
||||||
SIOCGHIWAT = 0x40047301
|
|
||||||
SIOCGIFADDR = 0xc0206921
|
SIOCGIFADDR = 0xc0206921
|
||||||
SIOCGIFASYNCMAP = 0xc020697c
|
|
||||||
SIOCGIFBRDADDR = 0xc0206923
|
SIOCGIFBRDADDR = 0xc0206923
|
||||||
SIOCGIFCONF = 0xc0086924
|
SIOCGIFCONF = 0xc0086924
|
||||||
SIOCGIFDATA = 0xc020691b
|
SIOCGIFDATA = 0xc020691b
|
||||||
@ -1168,41 +1333,53 @@ const (
|
|||||||
SIOCGIFFLAGS = 0xc0206911
|
SIOCGIFFLAGS = 0xc0206911
|
||||||
SIOCGIFGATTR = 0xc024698b
|
SIOCGIFGATTR = 0xc024698b
|
||||||
SIOCGIFGENERIC = 0xc020693a
|
SIOCGIFGENERIC = 0xc020693a
|
||||||
|
SIOCGIFGLIST = 0xc024698d
|
||||||
SIOCGIFGMEMB = 0xc024698a
|
SIOCGIFGMEMB = 0xc024698a
|
||||||
SIOCGIFGROUP = 0xc0246988
|
SIOCGIFGROUP = 0xc0246988
|
||||||
SIOCGIFHARDMTU = 0xc02069a5
|
SIOCGIFHARDMTU = 0xc02069a5
|
||||||
SIOCGIFMEDIA = 0xc0286936
|
SIOCGIFLLPRIO = 0xc02069b6
|
||||||
|
SIOCGIFMEDIA = 0xc0386938
|
||||||
SIOCGIFMETRIC = 0xc0206917
|
SIOCGIFMETRIC = 0xc0206917
|
||||||
SIOCGIFMTU = 0xc020697e
|
SIOCGIFMTU = 0xc020697e
|
||||||
SIOCGIFNETMASK = 0xc0206925
|
SIOCGIFNETMASK = 0xc0206925
|
||||||
SIOCGIFPDSTADDR = 0xc0206948
|
SIOCGIFPAIR = 0xc02069b1
|
||||||
|
SIOCGIFPARENT = 0xc02069b3
|
||||||
SIOCGIFPRIORITY = 0xc020699c
|
SIOCGIFPRIORITY = 0xc020699c
|
||||||
SIOCGIFPSRCADDR = 0xc0206947
|
|
||||||
SIOCGIFRDOMAIN = 0xc02069a0
|
SIOCGIFRDOMAIN = 0xc02069a0
|
||||||
SIOCGIFRTLABEL = 0xc0206983
|
SIOCGIFRTLABEL = 0xc0206983
|
||||||
SIOCGIFRXR = 0x802069aa
|
SIOCGIFRXR = 0x802069aa
|
||||||
SIOCGIFTIMESLOT = 0xc0206986
|
SIOCGIFSFFPAGE = 0xc1126939
|
||||||
SIOCGIFXFLAGS = 0xc020699e
|
SIOCGIFXFLAGS = 0xc020699e
|
||||||
SIOCGLIFADDR = 0xc218691d
|
|
||||||
SIOCGLIFPHYADDR = 0xc218694b
|
SIOCGLIFPHYADDR = 0xc218694b
|
||||||
|
SIOCGLIFPHYDF = 0xc02069c2
|
||||||
|
SIOCGLIFPHYECN = 0xc02069c8
|
||||||
SIOCGLIFPHYRTABLE = 0xc02069a2
|
SIOCGLIFPHYRTABLE = 0xc02069a2
|
||||||
SIOCGLIFPHYTTL = 0xc02069a9
|
SIOCGLIFPHYTTL = 0xc02069a9
|
||||||
SIOCGLOWAT = 0x40047303
|
|
||||||
SIOCGPGRP = 0x40047309
|
SIOCGPGRP = 0x40047309
|
||||||
|
SIOCGPWE3 = 0xc0206998
|
||||||
|
SIOCGPWE3CTRLWORD = 0xc02069dc
|
||||||
|
SIOCGPWE3FAT = 0xc02069dd
|
||||||
|
SIOCGPWE3NEIGHBOR = 0xc21869de
|
||||||
|
SIOCGRXHPRIO = 0xc02069db
|
||||||
SIOCGSPPPPARAMS = 0xc0206994
|
SIOCGSPPPPARAMS = 0xc0206994
|
||||||
|
SIOCGTXHPRIO = 0xc02069c6
|
||||||
|
SIOCGUMBINFO = 0xc02069be
|
||||||
|
SIOCGUMBPARAM = 0xc02069c0
|
||||||
SIOCGVH = 0xc02069f6
|
SIOCGVH = 0xc02069f6
|
||||||
|
SIOCGVNETFLOWID = 0xc02069c4
|
||||||
SIOCGVNETID = 0xc02069a7
|
SIOCGVNETID = 0xc02069a7
|
||||||
|
SIOCIFAFATTACH = 0x801169ab
|
||||||
|
SIOCIFAFDETACH = 0x801169ac
|
||||||
SIOCIFCREATE = 0x8020697a
|
SIOCIFCREATE = 0x8020697a
|
||||||
SIOCIFDESTROY = 0x80206979
|
SIOCIFDESTROY = 0x80206979
|
||||||
SIOCIFGCLONERS = 0xc00c6978
|
SIOCIFGCLONERS = 0xc00c6978
|
||||||
SIOCSETKALIVE = 0x801869a3
|
SIOCSETKALIVE = 0x801869a3
|
||||||
SIOCSETLABEL = 0x80206999
|
SIOCSETLABEL = 0x80206999
|
||||||
|
SIOCSETMPWCFG = 0x802069ad
|
||||||
SIOCSETPFLOW = 0x802069fd
|
SIOCSETPFLOW = 0x802069fd
|
||||||
SIOCSETPFSYNC = 0x802069f7
|
SIOCSETPFSYNC = 0x802069f7
|
||||||
SIOCSETVLAN = 0x8020698f
|
SIOCSETVLAN = 0x8020698f
|
||||||
SIOCSHIWAT = 0x80047300
|
|
||||||
SIOCSIFADDR = 0x8020690c
|
SIOCSIFADDR = 0x8020690c
|
||||||
SIOCSIFASYNCMAP = 0x8020697d
|
|
||||||
SIOCSIFBRDADDR = 0x80206913
|
SIOCSIFBRDADDR = 0x80206913
|
||||||
SIOCSIFDESCR = 0x80206980
|
SIOCSIFDESCR = 0x80206980
|
||||||
SIOCSIFDSTADDR = 0x8020690e
|
SIOCSIFDSTADDR = 0x8020690e
|
||||||
@ -1210,26 +1387,36 @@ const (
|
|||||||
SIOCSIFGATTR = 0x8024698c
|
SIOCSIFGATTR = 0x8024698c
|
||||||
SIOCSIFGENERIC = 0x80206939
|
SIOCSIFGENERIC = 0x80206939
|
||||||
SIOCSIFLLADDR = 0x8020691f
|
SIOCSIFLLADDR = 0x8020691f
|
||||||
SIOCSIFMEDIA = 0xc0206935
|
SIOCSIFLLPRIO = 0x802069b5
|
||||||
|
SIOCSIFMEDIA = 0xc0206937
|
||||||
SIOCSIFMETRIC = 0x80206918
|
SIOCSIFMETRIC = 0x80206918
|
||||||
SIOCSIFMTU = 0x8020697f
|
SIOCSIFMTU = 0x8020697f
|
||||||
SIOCSIFNETMASK = 0x80206916
|
SIOCSIFNETMASK = 0x80206916
|
||||||
SIOCSIFPHYADDR = 0x80406946
|
SIOCSIFPAIR = 0x802069b0
|
||||||
|
SIOCSIFPARENT = 0x802069b2
|
||||||
SIOCSIFPRIORITY = 0x8020699b
|
SIOCSIFPRIORITY = 0x8020699b
|
||||||
SIOCSIFRDOMAIN = 0x8020699f
|
SIOCSIFRDOMAIN = 0x8020699f
|
||||||
SIOCSIFRTLABEL = 0x80206982
|
SIOCSIFRTLABEL = 0x80206982
|
||||||
SIOCSIFTIMESLOT = 0x80206985
|
|
||||||
SIOCSIFXFLAGS = 0x8020699d
|
SIOCSIFXFLAGS = 0x8020699d
|
||||||
SIOCSLIFPHYADDR = 0x8218694a
|
SIOCSLIFPHYADDR = 0x8218694a
|
||||||
|
SIOCSLIFPHYDF = 0x802069c1
|
||||||
|
SIOCSLIFPHYECN = 0x802069c7
|
||||||
SIOCSLIFPHYRTABLE = 0x802069a1
|
SIOCSLIFPHYRTABLE = 0x802069a1
|
||||||
SIOCSLIFPHYTTL = 0x802069a8
|
SIOCSLIFPHYTTL = 0x802069a8
|
||||||
SIOCSLOWAT = 0x80047302
|
|
||||||
SIOCSPGRP = 0x80047308
|
SIOCSPGRP = 0x80047308
|
||||||
|
SIOCSPWE3CTRLWORD = 0x802069dc
|
||||||
|
SIOCSPWE3FAT = 0x802069dd
|
||||||
|
SIOCSPWE3NEIGHBOR = 0x821869de
|
||||||
|
SIOCSRXHPRIO = 0x802069db
|
||||||
SIOCSSPPPPARAMS = 0x80206993
|
SIOCSSPPPPARAMS = 0x80206993
|
||||||
|
SIOCSTXHPRIO = 0x802069c5
|
||||||
|
SIOCSUMBPARAM = 0x802069bf
|
||||||
SIOCSVH = 0xc02069f5
|
SIOCSVH = 0xc02069f5
|
||||||
|
SIOCSVNETFLOWID = 0x802069c3
|
||||||
SIOCSVNETID = 0x802069a6
|
SIOCSVNETID = 0x802069a6
|
||||||
SOCK_CLOEXEC = 0x8000
|
SOCK_CLOEXEC = 0x8000
|
||||||
SOCK_DGRAM = 0x2
|
SOCK_DGRAM = 0x2
|
||||||
|
SOCK_DNS = 0x1000
|
||||||
SOCK_NONBLOCK = 0x4000
|
SOCK_NONBLOCK = 0x4000
|
||||||
SOCK_RAW = 0x3
|
SOCK_RAW = 0x3
|
||||||
SOCK_RDM = 0x4
|
SOCK_RDM = 0x4
|
||||||
@ -1241,6 +1428,7 @@ const (
|
|||||||
SO_BINDANY = 0x1000
|
SO_BINDANY = 0x1000
|
||||||
SO_BROADCAST = 0x20
|
SO_BROADCAST = 0x20
|
||||||
SO_DEBUG = 0x1
|
SO_DEBUG = 0x1
|
||||||
|
SO_DOMAIN = 0x1024
|
||||||
SO_DONTROUTE = 0x10
|
SO_DONTROUTE = 0x10
|
||||||
SO_ERROR = 0x1007
|
SO_ERROR = 0x1007
|
||||||
SO_KEEPALIVE = 0x8
|
SO_KEEPALIVE = 0x8
|
||||||
@ -1248,6 +1436,7 @@ const (
|
|||||||
SO_NETPROC = 0x1020
|
SO_NETPROC = 0x1020
|
||||||
SO_OOBINLINE = 0x100
|
SO_OOBINLINE = 0x100
|
||||||
SO_PEERCRED = 0x1022
|
SO_PEERCRED = 0x1022
|
||||||
|
SO_PROTOCOL = 0x1025
|
||||||
SO_RCVBUF = 0x1002
|
SO_RCVBUF = 0x1002
|
||||||
SO_RCVLOWAT = 0x1004
|
SO_RCVLOWAT = 0x1004
|
||||||
SO_RCVTIMEO = 0x1006
|
SO_RCVTIMEO = 0x1006
|
||||||
@ -1261,6 +1450,7 @@ const (
|
|||||||
SO_TIMESTAMP = 0x800
|
SO_TIMESTAMP = 0x800
|
||||||
SO_TYPE = 0x1008
|
SO_TYPE = 0x1008
|
||||||
SO_USELOOPBACK = 0x40
|
SO_USELOOPBACK = 0x40
|
||||||
|
SO_ZEROIZE = 0x2000
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
S_IFBLK = 0x6000
|
S_IFBLK = 0x6000
|
||||||
@ -1290,9 +1480,24 @@ const (
|
|||||||
S_IXOTH = 0x1
|
S_IXOTH = 0x1
|
||||||
S_IXUSR = 0x40
|
S_IXUSR = 0x40
|
||||||
TCIFLUSH = 0x1
|
TCIFLUSH = 0x1
|
||||||
|
TCIOFF = 0x3
|
||||||
TCIOFLUSH = 0x3
|
TCIOFLUSH = 0x3
|
||||||
|
TCION = 0x4
|
||||||
TCOFLUSH = 0x2
|
TCOFLUSH = 0x2
|
||||||
TCP_MAXBURST = 0x4
|
TCOOFF = 0x1
|
||||||
|
TCOON = 0x2
|
||||||
|
TCPOPT_EOL = 0x0
|
||||||
|
TCPOPT_MAXSEG = 0x2
|
||||||
|
TCPOPT_NOP = 0x1
|
||||||
|
TCPOPT_SACK = 0x5
|
||||||
|
TCPOPT_SACK_HDR = 0x1010500
|
||||||
|
TCPOPT_SACK_PERMITTED = 0x4
|
||||||
|
TCPOPT_SACK_PERMIT_HDR = 0x1010402
|
||||||
|
TCPOPT_SIGNATURE = 0x13
|
||||||
|
TCPOPT_TIMESTAMP = 0x8
|
||||||
|
TCPOPT_TSTAMP_HDR = 0x101080a
|
||||||
|
TCPOPT_WINDOW = 0x3
|
||||||
|
TCP_INFO = 0x9
|
||||||
TCP_MAXSEG = 0x2
|
TCP_MAXSEG = 0x2
|
||||||
TCP_MAXWIN = 0xffff
|
TCP_MAXWIN = 0xffff
|
||||||
TCP_MAX_SACK = 0x3
|
TCP_MAX_SACK = 0x3
|
||||||
@ -1301,11 +1506,15 @@ const (
|
|||||||
TCP_MSS = 0x200
|
TCP_MSS = 0x200
|
||||||
TCP_NODELAY = 0x1
|
TCP_NODELAY = 0x1
|
||||||
TCP_NOPUSH = 0x10
|
TCP_NOPUSH = 0x10
|
||||||
TCP_NSTATES = 0xb
|
TCP_SACKHOLE_LIMIT = 0x80
|
||||||
TCP_SACK_ENABLE = 0x8
|
TCP_SACK_ENABLE = 0x8
|
||||||
TCSAFLUSH = 0x2
|
TCSAFLUSH = 0x2
|
||||||
|
TIMER_ABSTIME = 0x1
|
||||||
|
TIMER_RELTIME = 0x0
|
||||||
TIOCCBRK = 0x2000747a
|
TIOCCBRK = 0x2000747a
|
||||||
TIOCCDTR = 0x20007478
|
TIOCCDTR = 0x20007478
|
||||||
|
TIOCCHKVERAUTH = 0x2000741e
|
||||||
|
TIOCCLRVERAUTH = 0x2000741d
|
||||||
TIOCCONS = 0x80047462
|
TIOCCONS = 0x80047462
|
||||||
TIOCDRAIN = 0x2000745e
|
TIOCDRAIN = 0x2000745e
|
||||||
TIOCEXCL = 0x2000740d
|
TIOCEXCL = 0x2000740d
|
||||||
@ -1321,7 +1530,7 @@ const (
|
|||||||
TIOCGFLAGS = 0x4004745d
|
TIOCGFLAGS = 0x4004745d
|
||||||
TIOCGPGRP = 0x40047477
|
TIOCGPGRP = 0x40047477
|
||||||
TIOCGSID = 0x40047463
|
TIOCGSID = 0x40047463
|
||||||
TIOCGTSTAMP = 0x400c745b
|
TIOCGTSTAMP = 0x4010745b
|
||||||
TIOCGWINSZ = 0x40087468
|
TIOCGWINSZ = 0x40087468
|
||||||
TIOCMBIC = 0x8004746b
|
TIOCMBIC = 0x8004746b
|
||||||
TIOCMBIS = 0x8004746c
|
TIOCMBIS = 0x8004746c
|
||||||
@ -1360,17 +1569,21 @@ const (
|
|||||||
TIOCSETAF = 0x802c7416
|
TIOCSETAF = 0x802c7416
|
||||||
TIOCSETAW = 0x802c7415
|
TIOCSETAW = 0x802c7415
|
||||||
TIOCSETD = 0x8004741b
|
TIOCSETD = 0x8004741b
|
||||||
|
TIOCSETVERAUTH = 0x8004741c
|
||||||
TIOCSFLAGS = 0x8004745c
|
TIOCSFLAGS = 0x8004745c
|
||||||
TIOCSIG = 0x8004745f
|
TIOCSIG = 0x8004745f
|
||||||
TIOCSPGRP = 0x80047476
|
TIOCSPGRP = 0x80047476
|
||||||
TIOCSTART = 0x2000746e
|
TIOCSTART = 0x2000746e
|
||||||
TIOCSTAT = 0x80047465
|
TIOCSTAT = 0x20007465
|
||||||
TIOCSTI = 0x80017472
|
|
||||||
TIOCSTOP = 0x2000746f
|
TIOCSTOP = 0x2000746f
|
||||||
TIOCSTSTAMP = 0x8008745a
|
TIOCSTSTAMP = 0x8008745a
|
||||||
TIOCSWINSZ = 0x80087467
|
TIOCSWINSZ = 0x80087467
|
||||||
TIOCUCNTL = 0x80047466
|
TIOCUCNTL = 0x80047466
|
||||||
|
TIOCUCNTL_CBRK = 0x7a
|
||||||
|
TIOCUCNTL_SBRK = 0x7b
|
||||||
TOSTOP = 0x400000
|
TOSTOP = 0x400000
|
||||||
|
UTIME_NOW = -0x2
|
||||||
|
UTIME_OMIT = -0x1
|
||||||
VDISCARD = 0xf
|
VDISCARD = 0xf
|
||||||
VDSUSP = 0xb
|
VDSUSP = 0xb
|
||||||
VEOF = 0x0
|
VEOF = 0x0
|
||||||
@ -1381,6 +1594,19 @@ const (
|
|||||||
VKILL = 0x5
|
VKILL = 0x5
|
||||||
VLNEXT = 0xe
|
VLNEXT = 0xe
|
||||||
VMIN = 0x10
|
VMIN = 0x10
|
||||||
|
VM_ANONMIN = 0x7
|
||||||
|
VM_LOADAVG = 0x2
|
||||||
|
VM_MALLOC_CONF = 0xc
|
||||||
|
VM_MAXID = 0xd
|
||||||
|
VM_MAXSLP = 0xa
|
||||||
|
VM_METER = 0x1
|
||||||
|
VM_NKMEMPAGES = 0x6
|
||||||
|
VM_PSSTRINGS = 0x3
|
||||||
|
VM_SWAPENCRYPT = 0x5
|
||||||
|
VM_USPACE = 0xb
|
||||||
|
VM_UVMEXP = 0x4
|
||||||
|
VM_VNODEMIN = 0x9
|
||||||
|
VM_VTEXTMIN = 0x8
|
||||||
VQUIT = 0x9
|
VQUIT = 0x9
|
||||||
VREPRINT = 0x6
|
VREPRINT = 0x6
|
||||||
VSTART = 0xc
|
VSTART = 0xc
|
||||||
@ -1394,6 +1620,7 @@ const (
|
|||||||
WCOREFLAG = 0x80
|
WCOREFLAG = 0x80
|
||||||
WNOHANG = 0x1
|
WNOHANG = 0x1
|
||||||
WUNTRACED = 0x2
|
WUNTRACED = 0x2
|
||||||
|
XCASE = 0x1000000
|
||||||
)
|
)
|
||||||
|
|
||||||
// Errors
|
// Errors
|
||||||
@ -1407,6 +1634,7 @@ const (
|
|||||||
EALREADY = syscall.Errno(0x25)
|
EALREADY = syscall.Errno(0x25)
|
||||||
EAUTH = syscall.Errno(0x50)
|
EAUTH = syscall.Errno(0x50)
|
||||||
EBADF = syscall.Errno(0x9)
|
EBADF = syscall.Errno(0x9)
|
||||||
|
EBADMSG = syscall.Errno(0x5c)
|
||||||
EBADRPC = syscall.Errno(0x48)
|
EBADRPC = syscall.Errno(0x48)
|
||||||
EBUSY = syscall.Errno(0x10)
|
EBUSY = syscall.Errno(0x10)
|
||||||
ECANCELED = syscall.Errno(0x58)
|
ECANCELED = syscall.Errno(0x58)
|
||||||
@ -1433,7 +1661,7 @@ const (
|
|||||||
EIPSEC = syscall.Errno(0x52)
|
EIPSEC = syscall.Errno(0x52)
|
||||||
EISCONN = syscall.Errno(0x38)
|
EISCONN = syscall.Errno(0x38)
|
||||||
EISDIR = syscall.Errno(0x15)
|
EISDIR = syscall.Errno(0x15)
|
||||||
ELAST = syscall.Errno(0x5b)
|
ELAST = syscall.Errno(0x5f)
|
||||||
ELOOP = syscall.Errno(0x3e)
|
ELOOP = syscall.Errno(0x3e)
|
||||||
EMEDIUMTYPE = syscall.Errno(0x56)
|
EMEDIUMTYPE = syscall.Errno(0x56)
|
||||||
EMFILE = syscall.Errno(0x18)
|
EMFILE = syscall.Errno(0x18)
|
||||||
@ -1461,12 +1689,14 @@ const (
|
|||||||
ENOTCONN = syscall.Errno(0x39)
|
ENOTCONN = syscall.Errno(0x39)
|
||||||
ENOTDIR = syscall.Errno(0x14)
|
ENOTDIR = syscall.Errno(0x14)
|
||||||
ENOTEMPTY = syscall.Errno(0x42)
|
ENOTEMPTY = syscall.Errno(0x42)
|
||||||
|
ENOTRECOVERABLE = syscall.Errno(0x5d)
|
||||||
ENOTSOCK = syscall.Errno(0x26)
|
ENOTSOCK = syscall.Errno(0x26)
|
||||||
ENOTSUP = syscall.Errno(0x5b)
|
ENOTSUP = syscall.Errno(0x5b)
|
||||||
ENOTTY = syscall.Errno(0x19)
|
ENOTTY = syscall.Errno(0x19)
|
||||||
ENXIO = syscall.Errno(0x6)
|
ENXIO = syscall.Errno(0x6)
|
||||||
EOPNOTSUPP = syscall.Errno(0x2d)
|
EOPNOTSUPP = syscall.Errno(0x2d)
|
||||||
EOVERFLOW = syscall.Errno(0x57)
|
EOVERFLOW = syscall.Errno(0x57)
|
||||||
|
EOWNERDEAD = syscall.Errno(0x5e)
|
||||||
EPERM = syscall.Errno(0x1)
|
EPERM = syscall.Errno(0x1)
|
||||||
EPFNOSUPPORT = syscall.Errno(0x2e)
|
EPFNOSUPPORT = syscall.Errno(0x2e)
|
||||||
EPIPE = syscall.Errno(0x20)
|
EPIPE = syscall.Errno(0x20)
|
||||||
@ -1474,6 +1704,7 @@ const (
|
|||||||
EPROCUNAVAIL = syscall.Errno(0x4c)
|
EPROCUNAVAIL = syscall.Errno(0x4c)
|
||||||
EPROGMISMATCH = syscall.Errno(0x4b)
|
EPROGMISMATCH = syscall.Errno(0x4b)
|
||||||
EPROGUNAVAIL = syscall.Errno(0x4a)
|
EPROGUNAVAIL = syscall.Errno(0x4a)
|
||||||
|
EPROTO = syscall.Errno(0x5f)
|
||||||
EPROTONOSUPPORT = syscall.Errno(0x2b)
|
EPROTONOSUPPORT = syscall.Errno(0x2b)
|
||||||
EPROTOTYPE = syscall.Errno(0x29)
|
EPROTOTYPE = syscall.Errno(0x29)
|
||||||
ERANGE = syscall.Errno(0x22)
|
ERANGE = syscall.Errno(0x22)
|
||||||
@ -1570,7 +1801,7 @@ var errorList = [...]struct {
|
|||||||
{32, "EPIPE", "broken pipe"},
|
{32, "EPIPE", "broken pipe"},
|
||||||
{33, "EDOM", "numerical argument out of domain"},
|
{33, "EDOM", "numerical argument out of domain"},
|
||||||
{34, "ERANGE", "result too large"},
|
{34, "ERANGE", "result too large"},
|
||||||
{35, "EWOULDBLOCK", "resource temporarily unavailable"},
|
{35, "EAGAIN", "resource temporarily unavailable"},
|
||||||
{36, "EINPROGRESS", "operation now in progress"},
|
{36, "EINPROGRESS", "operation now in progress"},
|
||||||
{37, "EALREADY", "operation already in progress"},
|
{37, "EALREADY", "operation already in progress"},
|
||||||
{38, "ENOTSOCK", "socket operation on non-socket"},
|
{38, "ENOTSOCK", "socket operation on non-socket"},
|
||||||
@ -1626,7 +1857,11 @@ var errorList = [...]struct {
|
|||||||
{88, "ECANCELED", "operation canceled"},
|
{88, "ECANCELED", "operation canceled"},
|
||||||
{89, "EIDRM", "identifier removed"},
|
{89, "EIDRM", "identifier removed"},
|
||||||
{90, "ENOMSG", "no message of desired type"},
|
{90, "ENOMSG", "no message of desired type"},
|
||||||
{91, "ELAST", "not supported"},
|
{91, "ENOTSUP", "not supported"},
|
||||||
|
{92, "EBADMSG", "bad message"},
|
||||||
|
{93, "ENOTRECOVERABLE", "state not recoverable"},
|
||||||
|
{94, "EOWNERDEAD", "previous owner died"},
|
||||||
|
{95, "ELAST", "protocol error"},
|
||||||
}
|
}
|
||||||
|
|
||||||
// Signal table
|
// Signal table
|
||||||
@ -1640,7 +1875,7 @@ var signalList = [...]struct {
|
|||||||
{3, "SIGQUIT", "quit"},
|
{3, "SIGQUIT", "quit"},
|
||||||
{4, "SIGILL", "illegal instruction"},
|
{4, "SIGILL", "illegal instruction"},
|
||||||
{5, "SIGTRAP", "trace/BPT trap"},
|
{5, "SIGTRAP", "trace/BPT trap"},
|
||||||
{6, "SIGABRT", "abort trap"},
|
{6, "SIGIOT", "abort trap"},
|
||||||
{7, "SIGEMT", "EMT trap"},
|
{7, "SIGEMT", "EMT trap"},
|
||||||
{8, "SIGFPE", "floating point exception"},
|
{8, "SIGFPE", "floating point exception"},
|
||||||
{9, "SIGKILL", "killed"},
|
{9, "SIGKILL", "killed"},
|
||||||
@ -1667,4 +1902,5 @@ var signalList = [...]struct {
|
|||||||
{30, "SIGUSR1", "user defined signal 1"},
|
{30, "SIGUSR1", "user defined signal 1"},
|
||||||
{31, "SIGUSR2", "user defined signal 2"},
|
{31, "SIGUSR2", "user defined signal 2"},
|
||||||
{32, "SIGTHR", "thread AST"},
|
{32, "SIGTHR", "thread AST"},
|
||||||
|
{28672, "SIGSTKSZ", "unknown signal"},
|
||||||
}
|
}
|
||||||
|
160
gateway/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm64.go
generated
vendored
160
gateway/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm64.go
generated
vendored
@ -112,6 +112,12 @@ const (
|
|||||||
BPF_FILDROP_CAPTURE = 0x1
|
BPF_FILDROP_CAPTURE = 0x1
|
||||||
BPF_FILDROP_DROP = 0x2
|
BPF_FILDROP_DROP = 0x2
|
||||||
BPF_FILDROP_PASS = 0x0
|
BPF_FILDROP_PASS = 0x0
|
||||||
|
BPF_F_DIR_IN = 0x10
|
||||||
|
BPF_F_DIR_MASK = 0x30
|
||||||
|
BPF_F_DIR_OUT = 0x20
|
||||||
|
BPF_F_DIR_SHIFT = 0x4
|
||||||
|
BPF_F_FLOWID = 0x8
|
||||||
|
BPF_F_PRI_MASK = 0x7
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
@ -140,6 +146,7 @@ const (
|
|||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
BPF_RELEASE = 0x30bb6
|
BPF_RELEASE = 0x30bb6
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
|
BPF_RND = 0xc0
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
@ -180,7 +187,65 @@ const (
|
|||||||
CTL_KERN = 0x1
|
CTL_KERN = 0x1
|
||||||
CTL_MAXNAME = 0xc
|
CTL_MAXNAME = 0xc
|
||||||
CTL_NET = 0x4
|
CTL_NET = 0x4
|
||||||
|
DIOCADDQUEUE = 0xc110445d
|
||||||
|
DIOCADDRULE = 0xcd604404
|
||||||
|
DIOCADDSTATE = 0xc1084425
|
||||||
|
DIOCCHANGERULE = 0xcd60441a
|
||||||
|
DIOCCLRIFFLAG = 0xc028445a
|
||||||
|
DIOCCLRSRCNODES = 0x20004455
|
||||||
|
DIOCCLRSTATES = 0xc0e04412
|
||||||
|
DIOCCLRSTATUS = 0xc0284416
|
||||||
|
DIOCGETLIMIT = 0xc0084427
|
||||||
|
DIOCGETQSTATS = 0xc1204460
|
||||||
|
DIOCGETQUEUE = 0xc110445f
|
||||||
|
DIOCGETQUEUES = 0xc110445e
|
||||||
|
DIOCGETRULE = 0xcd604407
|
||||||
|
DIOCGETRULES = 0xcd604406
|
||||||
|
DIOCGETRULESET = 0xc444443b
|
||||||
|
DIOCGETRULESETS = 0xc444443a
|
||||||
|
DIOCGETSRCNODES = 0xc0104454
|
||||||
|
DIOCGETSTATE = 0xc1084413
|
||||||
|
DIOCGETSTATES = 0xc0104419
|
||||||
|
DIOCGETSTATUS = 0xc1e84415
|
||||||
|
DIOCGETSYNFLWATS = 0xc0084463
|
||||||
|
DIOCGETTIMEOUT = 0xc008441e
|
||||||
|
DIOCIGETIFACES = 0xc0284457
|
||||||
|
DIOCKILLSRCNODES = 0xc080445b
|
||||||
|
DIOCKILLSTATES = 0xc0e04429
|
||||||
|
DIOCNATLOOK = 0xc0504417
|
||||||
|
DIOCOSFPADD = 0xc088444f
|
||||||
DIOCOSFPFLUSH = 0x2000444e
|
DIOCOSFPFLUSH = 0x2000444e
|
||||||
|
DIOCOSFPGET = 0xc0884450
|
||||||
|
DIOCRADDADDRS = 0xc4504443
|
||||||
|
DIOCRADDTABLES = 0xc450443d
|
||||||
|
DIOCRCLRADDRS = 0xc4504442
|
||||||
|
DIOCRCLRASTATS = 0xc4504448
|
||||||
|
DIOCRCLRTABLES = 0xc450443c
|
||||||
|
DIOCRCLRTSTATS = 0xc4504441
|
||||||
|
DIOCRDELADDRS = 0xc4504444
|
||||||
|
DIOCRDELTABLES = 0xc450443e
|
||||||
|
DIOCRGETADDRS = 0xc4504446
|
||||||
|
DIOCRGETASTATS = 0xc4504447
|
||||||
|
DIOCRGETTABLES = 0xc450443f
|
||||||
|
DIOCRGETTSTATS = 0xc4504440
|
||||||
|
DIOCRINADEFINE = 0xc450444d
|
||||||
|
DIOCRSETADDRS = 0xc4504445
|
||||||
|
DIOCRSETTFLAGS = 0xc450444a
|
||||||
|
DIOCRTSTADDRS = 0xc4504449
|
||||||
|
DIOCSETDEBUG = 0xc0044418
|
||||||
|
DIOCSETHOSTID = 0xc0044456
|
||||||
|
DIOCSETIFFLAG = 0xc0284459
|
||||||
|
DIOCSETLIMIT = 0xc0084428
|
||||||
|
DIOCSETREASS = 0xc004445c
|
||||||
|
DIOCSETSTATUSIF = 0xc0284414
|
||||||
|
DIOCSETSYNCOOKIES = 0xc0014462
|
||||||
|
DIOCSETSYNFLWATS = 0xc0084461
|
||||||
|
DIOCSETTIMEOUT = 0xc008441d
|
||||||
|
DIOCSTART = 0x20004401
|
||||||
|
DIOCSTOP = 0x20004402
|
||||||
|
DIOCXBEGIN = 0xc0104451
|
||||||
|
DIOCXCOMMIT = 0xc0104452
|
||||||
|
DIOCXROLLBACK = 0xc0104453
|
||||||
DLT_ARCNET = 0x7
|
DLT_ARCNET = 0x7
|
||||||
DLT_ATM_RFC1483 = 0xb
|
DLT_ATM_RFC1483 = 0xb
|
||||||
DLT_AX25 = 0x3
|
DLT_AX25 = 0x3
|
||||||
@ -243,6 +308,8 @@ const (
|
|||||||
EMUL_ENABLED = 0x1
|
EMUL_ENABLED = 0x1
|
||||||
EMUL_NATIVE = 0x2
|
EMUL_NATIVE = 0x2
|
||||||
ENDRUNDISC = 0x9
|
ENDRUNDISC = 0x9
|
||||||
|
ETH64_8021_RSVD_MASK = 0xfffffffffff0
|
||||||
|
ETH64_8021_RSVD_PREFIX = 0x180c2000000
|
||||||
ETHERMIN = 0x2e
|
ETHERMIN = 0x2e
|
||||||
ETHERMTU = 0x5dc
|
ETHERMTU = 0x5dc
|
||||||
ETHERTYPE_8023 = 0x4
|
ETHERTYPE_8023 = 0x4
|
||||||
@ -295,6 +362,7 @@ const (
|
|||||||
ETHERTYPE_DN = 0x6003
|
ETHERTYPE_DN = 0x6003
|
||||||
ETHERTYPE_DOGFIGHT = 0x1989
|
ETHERTYPE_DOGFIGHT = 0x1989
|
||||||
ETHERTYPE_DSMD = 0x8039
|
ETHERTYPE_DSMD = 0x8039
|
||||||
|
ETHERTYPE_EAPOL = 0x888e
|
||||||
ETHERTYPE_ECMA = 0x803
|
ETHERTYPE_ECMA = 0x803
|
||||||
ETHERTYPE_ENCRYPT = 0x803d
|
ETHERTYPE_ENCRYPT = 0x803d
|
||||||
ETHERTYPE_ES = 0x805d
|
ETHERTYPE_ES = 0x805d
|
||||||
@ -326,6 +394,7 @@ const (
|
|||||||
ETHERTYPE_LLDP = 0x88cc
|
ETHERTYPE_LLDP = 0x88cc
|
||||||
ETHERTYPE_LOGICRAFT = 0x8148
|
ETHERTYPE_LOGICRAFT = 0x8148
|
||||||
ETHERTYPE_LOOPBACK = 0x9000
|
ETHERTYPE_LOOPBACK = 0x9000
|
||||||
|
ETHERTYPE_MACSEC = 0x88e5
|
||||||
ETHERTYPE_MATRA = 0x807a
|
ETHERTYPE_MATRA = 0x807a
|
||||||
ETHERTYPE_MAX = 0xffff
|
ETHERTYPE_MAX = 0xffff
|
||||||
ETHERTYPE_MERIT = 0x807c
|
ETHERTYPE_MERIT = 0x807c
|
||||||
@ -354,15 +423,16 @@ const (
|
|||||||
ETHERTYPE_NCD = 0x8149
|
ETHERTYPE_NCD = 0x8149
|
||||||
ETHERTYPE_NESTAR = 0x8006
|
ETHERTYPE_NESTAR = 0x8006
|
||||||
ETHERTYPE_NETBEUI = 0x8191
|
ETHERTYPE_NETBEUI = 0x8191
|
||||||
|
ETHERTYPE_NHRP = 0x2001
|
||||||
ETHERTYPE_NOVELL = 0x8138
|
ETHERTYPE_NOVELL = 0x8138
|
||||||
ETHERTYPE_NS = 0x600
|
ETHERTYPE_NS = 0x600
|
||||||
ETHERTYPE_NSAT = 0x601
|
ETHERTYPE_NSAT = 0x601
|
||||||
ETHERTYPE_NSCOMPAT = 0x807
|
ETHERTYPE_NSCOMPAT = 0x807
|
||||||
|
ETHERTYPE_NSH = 0x984f
|
||||||
ETHERTYPE_NTRAILER = 0x10
|
ETHERTYPE_NTRAILER = 0x10
|
||||||
ETHERTYPE_OS9 = 0x7007
|
ETHERTYPE_OS9 = 0x7007
|
||||||
ETHERTYPE_OS9NET = 0x7009
|
ETHERTYPE_OS9NET = 0x7009
|
||||||
ETHERTYPE_PACER = 0x80c6
|
ETHERTYPE_PACER = 0x80c6
|
||||||
ETHERTYPE_PAE = 0x888e
|
|
||||||
ETHERTYPE_PBB = 0x88e7
|
ETHERTYPE_PBB = 0x88e7
|
||||||
ETHERTYPE_PCS = 0x4242
|
ETHERTYPE_PCS = 0x4242
|
||||||
ETHERTYPE_PLANNING = 0x8044
|
ETHERTYPE_PLANNING = 0x8044
|
||||||
@ -445,10 +515,11 @@ const (
|
|||||||
ETHER_VLAN_ENCAP_LEN = 0x4
|
ETHER_VLAN_ENCAP_LEN = 0x4
|
||||||
EVFILT_AIO = -0x3
|
EVFILT_AIO = -0x3
|
||||||
EVFILT_DEVICE = -0x8
|
EVFILT_DEVICE = -0x8
|
||||||
|
EVFILT_EXCEPT = -0x9
|
||||||
EVFILT_PROC = -0x5
|
EVFILT_PROC = -0x5
|
||||||
EVFILT_READ = -0x1
|
EVFILT_READ = -0x1
|
||||||
EVFILT_SIGNAL = -0x6
|
EVFILT_SIGNAL = -0x6
|
||||||
EVFILT_SYSCOUNT = 0x8
|
EVFILT_SYSCOUNT = 0x9
|
||||||
EVFILT_TIMER = -0x7
|
EVFILT_TIMER = -0x7
|
||||||
EVFILT_VNODE = -0x4
|
EVFILT_VNODE = -0x4
|
||||||
EVFILT_WRITE = -0x2
|
EVFILT_WRITE = -0x2
|
||||||
@ -470,7 +541,7 @@ const (
|
|||||||
EV_FLAG1 = 0x2000
|
EV_FLAG1 = 0x2000
|
||||||
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
|
||||||
EXTPROC = 0x800
|
EXTPROC = 0x800
|
||||||
@ -736,6 +807,7 @@ const (
|
|||||||
IFT_VOICEOVERCABLE = 0xc6
|
IFT_VOICEOVERCABLE = 0xc6
|
||||||
IFT_VOICEOVERFRAMERELAY = 0x99
|
IFT_VOICEOVERFRAMERELAY = 0x99
|
||||||
IFT_VOICEOVERIP = 0x68
|
IFT_VOICEOVERIP = 0x68
|
||||||
|
IFT_WIREGUARD = 0xfb
|
||||||
IFT_X213 = 0x5d
|
IFT_X213 = 0x5d
|
||||||
IFT_X25 = 0x5
|
IFT_X25 = 0x5
|
||||||
IFT_X25DDN = 0x4
|
IFT_X25DDN = 0x4
|
||||||
@ -801,9 +873,11 @@ const (
|
|||||||
IPPROTO_RAW = 0xff
|
IPPROTO_RAW = 0xff
|
||||||
IPPROTO_ROUTING = 0x2b
|
IPPROTO_ROUTING = 0x2b
|
||||||
IPPROTO_RSVP = 0x2e
|
IPPROTO_RSVP = 0x2e
|
||||||
|
IPPROTO_SCTP = 0x84
|
||||||
IPPROTO_TCP = 0x6
|
IPPROTO_TCP = 0x6
|
||||||
IPPROTO_TP = 0x1d
|
IPPROTO_TP = 0x1d
|
||||||
IPPROTO_UDP = 0x11
|
IPPROTO_UDP = 0x11
|
||||||
|
IPPROTO_UDPLITE = 0x88
|
||||||
IPV6_AUTH_LEVEL = 0x35
|
IPV6_AUTH_LEVEL = 0x35
|
||||||
IPV6_AUTOFLOWLABEL = 0x3b
|
IPV6_AUTOFLOWLABEL = 0x3b
|
||||||
IPV6_CHECKSUM = 0x1a
|
IPV6_CHECKSUM = 0x1a
|
||||||
@ -910,6 +984,9 @@ const (
|
|||||||
IP_TTL = 0x4
|
IP_TTL = 0x4
|
||||||
ISIG = 0x80
|
ISIG = 0x80
|
||||||
ISTRIP = 0x20
|
ISTRIP = 0x20
|
||||||
|
ITIMER_PROF = 0x2
|
||||||
|
ITIMER_REAL = 0x0
|
||||||
|
ITIMER_VIRTUAL = 0x1
|
||||||
IUCLC = 0x1000
|
IUCLC = 0x1000
|
||||||
IXANY = 0x800
|
IXANY = 0x800
|
||||||
IXOFF = 0x400
|
IXOFF = 0x400
|
||||||
@ -981,6 +1058,19 @@ const (
|
|||||||
MNT_WAIT = 0x1
|
MNT_WAIT = 0x1
|
||||||
MNT_WANTRDWR = 0x2000000
|
MNT_WANTRDWR = 0x2000000
|
||||||
MNT_WXALLOWED = 0x800
|
MNT_WXALLOWED = 0x800
|
||||||
|
MOUNT_AFS = "afs"
|
||||||
|
MOUNT_CD9660 = "cd9660"
|
||||||
|
MOUNT_EXT2FS = "ext2fs"
|
||||||
|
MOUNT_FFS = "ffs"
|
||||||
|
MOUNT_FUSEFS = "fuse"
|
||||||
|
MOUNT_MFS = "mfs"
|
||||||
|
MOUNT_MSDOS = "msdos"
|
||||||
|
MOUNT_NCPFS = "ncpfs"
|
||||||
|
MOUNT_NFS = "nfs"
|
||||||
|
MOUNT_NTFS = "ntfs"
|
||||||
|
MOUNT_TMPFS = "tmpfs"
|
||||||
|
MOUNT_UDF = "udf"
|
||||||
|
MOUNT_UFS = "ffs"
|
||||||
MSG_BCAST = 0x100
|
MSG_BCAST = 0x100
|
||||||
MSG_CMSG_CLOEXEC = 0x800
|
MSG_CMSG_CLOEXEC = 0x800
|
||||||
MSG_CTRUNC = 0x20
|
MSG_CTRUNC = 0x20
|
||||||
@ -993,6 +1083,7 @@ const (
|
|||||||
MSG_PEEK = 0x2
|
MSG_PEEK = 0x2
|
||||||
MSG_TRUNC = 0x10
|
MSG_TRUNC = 0x10
|
||||||
MSG_WAITALL = 0x40
|
MSG_WAITALL = 0x40
|
||||||
|
MSG_WAITFORONE = 0x1000
|
||||||
MS_ASYNC = 0x1
|
MS_ASYNC = 0x1
|
||||||
MS_INVALIDATE = 0x4
|
MS_INVALIDATE = 0x4
|
||||||
MS_SYNC = 0x2
|
MS_SYNC = 0x2
|
||||||
@ -1001,7 +1092,8 @@ const (
|
|||||||
NET_RT_FLAGS = 0x2
|
NET_RT_FLAGS = 0x2
|
||||||
NET_RT_IFLIST = 0x3
|
NET_RT_IFLIST = 0x3
|
||||||
NET_RT_IFNAMES = 0x6
|
NET_RT_IFNAMES = 0x6
|
||||||
NET_RT_MAXID = 0x7
|
NET_RT_MAXID = 0x8
|
||||||
|
NET_RT_SOURCE = 0x7
|
||||||
NET_RT_STATS = 0x4
|
NET_RT_STATS = 0x4
|
||||||
NET_RT_TABLE = 0x5
|
NET_RT_TABLE = 0x5
|
||||||
NFDBITS = 0x20
|
NFDBITS = 0x20
|
||||||
@ -1018,6 +1110,7 @@ const (
|
|||||||
NOTE_FORK = 0x40000000
|
NOTE_FORK = 0x40000000
|
||||||
NOTE_LINK = 0x10
|
NOTE_LINK = 0x10
|
||||||
NOTE_LOWAT = 0x1
|
NOTE_LOWAT = 0x1
|
||||||
|
NOTE_OOB = 0x4
|
||||||
NOTE_PCTRLMASK = 0xf0000000
|
NOTE_PCTRLMASK = 0xf0000000
|
||||||
NOTE_PDATAMASK = 0xfffff
|
NOTE_PDATAMASK = 0xfffff
|
||||||
NOTE_RENAME = 0x20
|
NOTE_RENAME = 0x20
|
||||||
@ -1154,7 +1247,7 @@ const (
|
|||||||
RTM_PROPOSAL = 0x13
|
RTM_PROPOSAL = 0x13
|
||||||
RTM_REDIRECT = 0x6
|
RTM_REDIRECT = 0x6
|
||||||
RTM_RESOLVE = 0xb
|
RTM_RESOLVE = 0xb
|
||||||
RTM_RTTUNIT = 0xf4240
|
RTM_SOURCE = 0x16
|
||||||
RTM_VERSION = 0x5
|
RTM_VERSION = 0x5
|
||||||
RTV_EXPIRE = 0x4
|
RTV_EXPIRE = 0x4
|
||||||
RTV_HOPCOUNT = 0x2
|
RTV_HOPCOUNT = 0x2
|
||||||
@ -1172,6 +1265,9 @@ const (
|
|||||||
RUSAGE_THREAD = 0x1
|
RUSAGE_THREAD = 0x1
|
||||||
SCM_RIGHTS = 0x1
|
SCM_RIGHTS = 0x1
|
||||||
SCM_TIMESTAMP = 0x4
|
SCM_TIMESTAMP = 0x4
|
||||||
|
SEEK_CUR = 0x1
|
||||||
|
SEEK_END = 0x2
|
||||||
|
SEEK_SET = 0x0
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
@ -1188,30 +1284,30 @@ const (
|
|||||||
SIOCBRDGDELS = 0x80606942
|
SIOCBRDGDELS = 0x80606942
|
||||||
SIOCBRDGFLUSH = 0x80606948
|
SIOCBRDGFLUSH = 0x80606948
|
||||||
SIOCBRDGFRL = 0x808c694e
|
SIOCBRDGFRL = 0x808c694e
|
||||||
SIOCBRDGGCACHE = 0xc0186941
|
SIOCBRDGGCACHE = 0xc0146941
|
||||||
SIOCBRDGGFD = 0xc0186952
|
SIOCBRDGGFD = 0xc0146952
|
||||||
SIOCBRDGGHT = 0xc0186951
|
SIOCBRDGGHT = 0xc0146951
|
||||||
SIOCBRDGGIFFLGS = 0xc060693e
|
SIOCBRDGGIFFLGS = 0xc060693e
|
||||||
SIOCBRDGGMA = 0xc0186953
|
SIOCBRDGGMA = 0xc0146953
|
||||||
SIOCBRDGGPARAM = 0xc0406958
|
SIOCBRDGGPARAM = 0xc0406958
|
||||||
SIOCBRDGGPRI = 0xc0186950
|
SIOCBRDGGPRI = 0xc0146950
|
||||||
SIOCBRDGGRL = 0xc030694f
|
SIOCBRDGGRL = 0xc030694f
|
||||||
SIOCBRDGGTO = 0xc0186946
|
SIOCBRDGGTO = 0xc0146946
|
||||||
SIOCBRDGIFS = 0xc0606942
|
SIOCBRDGIFS = 0xc0606942
|
||||||
SIOCBRDGRTS = 0xc0206943
|
SIOCBRDGRTS = 0xc0206943
|
||||||
SIOCBRDGSADDR = 0xc1286944
|
SIOCBRDGSADDR = 0xc1286944
|
||||||
SIOCBRDGSCACHE = 0x80186940
|
SIOCBRDGSCACHE = 0x80146940
|
||||||
SIOCBRDGSFD = 0x80186952
|
SIOCBRDGSFD = 0x80146952
|
||||||
SIOCBRDGSHT = 0x80186951
|
SIOCBRDGSHT = 0x80146951
|
||||||
SIOCBRDGSIFCOST = 0x80606955
|
SIOCBRDGSIFCOST = 0x80606955
|
||||||
SIOCBRDGSIFFLGS = 0x8060693f
|
SIOCBRDGSIFFLGS = 0x8060693f
|
||||||
SIOCBRDGSIFPRIO = 0x80606954
|
SIOCBRDGSIFPRIO = 0x80606954
|
||||||
SIOCBRDGSIFPROT = 0x8060694a
|
SIOCBRDGSIFPROT = 0x8060694a
|
||||||
SIOCBRDGSMA = 0x80186953
|
SIOCBRDGSMA = 0x80146953
|
||||||
SIOCBRDGSPRI = 0x80186950
|
SIOCBRDGSPRI = 0x80146950
|
||||||
SIOCBRDGSPROTO = 0x8018695a
|
SIOCBRDGSPROTO = 0x8014695a
|
||||||
SIOCBRDGSTO = 0x80186945
|
SIOCBRDGSTO = 0x80146945
|
||||||
SIOCBRDGSTXHC = 0x80186959
|
SIOCBRDGSTXHC = 0x80146959
|
||||||
SIOCDELLABEL = 0x80206997
|
SIOCDELLABEL = 0x80206997
|
||||||
SIOCDELMULTI = 0x80206932
|
SIOCDELMULTI = 0x80206932
|
||||||
SIOCDIFADDR = 0x80206919
|
SIOCDIFADDR = 0x80206919
|
||||||
@ -1264,6 +1360,7 @@ const (
|
|||||||
SIOCGPWE3CTRLWORD = 0xc02069dc
|
SIOCGPWE3CTRLWORD = 0xc02069dc
|
||||||
SIOCGPWE3FAT = 0xc02069dd
|
SIOCGPWE3FAT = 0xc02069dd
|
||||||
SIOCGPWE3NEIGHBOR = 0xc21869de
|
SIOCGPWE3NEIGHBOR = 0xc21869de
|
||||||
|
SIOCGRXHPRIO = 0xc02069db
|
||||||
SIOCGSPPPPARAMS = 0xc0206994
|
SIOCGSPPPPARAMS = 0xc0206994
|
||||||
SIOCGTXHPRIO = 0xc02069c6
|
SIOCGTXHPRIO = 0xc02069c6
|
||||||
SIOCGUMBINFO = 0xc02069be
|
SIOCGUMBINFO = 0xc02069be
|
||||||
@ -1310,17 +1407,13 @@ const (
|
|||||||
SIOCSPWE3CTRLWORD = 0x802069dc
|
SIOCSPWE3CTRLWORD = 0x802069dc
|
||||||
SIOCSPWE3FAT = 0x802069dd
|
SIOCSPWE3FAT = 0x802069dd
|
||||||
SIOCSPWE3NEIGHBOR = 0x821869de
|
SIOCSPWE3NEIGHBOR = 0x821869de
|
||||||
|
SIOCSRXHPRIO = 0x802069db
|
||||||
SIOCSSPPPPARAMS = 0x80206993
|
SIOCSSPPPPARAMS = 0x80206993
|
||||||
SIOCSTXHPRIO = 0x802069c5
|
SIOCSTXHPRIO = 0x802069c5
|
||||||
SIOCSUMBPARAM = 0x802069bf
|
SIOCSUMBPARAM = 0x802069bf
|
||||||
SIOCSVH = 0xc02069f5
|
SIOCSVH = 0xc02069f5
|
||||||
SIOCSVNETFLOWID = 0x802069c3
|
SIOCSVNETFLOWID = 0x802069c3
|
||||||
SIOCSVNETID = 0x802069a6
|
SIOCSVNETID = 0x802069a6
|
||||||
SIOCSWGDPID = 0xc018695b
|
|
||||||
SIOCSWGMAXFLOW = 0xc0186960
|
|
||||||
SIOCSWGMAXGROUP = 0xc018695d
|
|
||||||
SIOCSWSDPID = 0x8018695c
|
|
||||||
SIOCSWSPORTNO = 0xc060695f
|
|
||||||
SOCK_CLOEXEC = 0x8000
|
SOCK_CLOEXEC = 0x8000
|
||||||
SOCK_DGRAM = 0x2
|
SOCK_DGRAM = 0x2
|
||||||
SOCK_DNS = 0x1000
|
SOCK_DNS = 0x1000
|
||||||
@ -1335,6 +1428,7 @@ const (
|
|||||||
SO_BINDANY = 0x1000
|
SO_BINDANY = 0x1000
|
||||||
SO_BROADCAST = 0x20
|
SO_BROADCAST = 0x20
|
||||||
SO_DEBUG = 0x1
|
SO_DEBUG = 0x1
|
||||||
|
SO_DOMAIN = 0x1024
|
||||||
SO_DONTROUTE = 0x10
|
SO_DONTROUTE = 0x10
|
||||||
SO_ERROR = 0x1007
|
SO_ERROR = 0x1007
|
||||||
SO_KEEPALIVE = 0x8
|
SO_KEEPALIVE = 0x8
|
||||||
@ -1342,6 +1436,7 @@ const (
|
|||||||
SO_NETPROC = 0x1020
|
SO_NETPROC = 0x1020
|
||||||
SO_OOBINLINE = 0x100
|
SO_OOBINLINE = 0x100
|
||||||
SO_PEERCRED = 0x1022
|
SO_PEERCRED = 0x1022
|
||||||
|
SO_PROTOCOL = 0x1025
|
||||||
SO_RCVBUF = 0x1002
|
SO_RCVBUF = 0x1002
|
||||||
SO_RCVLOWAT = 0x1004
|
SO_RCVLOWAT = 0x1004
|
||||||
SO_RCVTIMEO = 0x1006
|
SO_RCVTIMEO = 0x1006
|
||||||
@ -1391,7 +1486,18 @@ const (
|
|||||||
TCOFLUSH = 0x2
|
TCOFLUSH = 0x2
|
||||||
TCOOFF = 0x1
|
TCOOFF = 0x1
|
||||||
TCOON = 0x2
|
TCOON = 0x2
|
||||||
TCP_MAXBURST = 0x4
|
TCPOPT_EOL = 0x0
|
||||||
|
TCPOPT_MAXSEG = 0x2
|
||||||
|
TCPOPT_NOP = 0x1
|
||||||
|
TCPOPT_SACK = 0x5
|
||||||
|
TCPOPT_SACK_HDR = 0x1010500
|
||||||
|
TCPOPT_SACK_PERMITTED = 0x4
|
||||||
|
TCPOPT_SACK_PERMIT_HDR = 0x1010402
|
||||||
|
TCPOPT_SIGNATURE = 0x13
|
||||||
|
TCPOPT_TIMESTAMP = 0x8
|
||||||
|
TCPOPT_TSTAMP_HDR = 0x101080a
|
||||||
|
TCPOPT_WINDOW = 0x3
|
||||||
|
TCP_INFO = 0x9
|
||||||
TCP_MAXSEG = 0x2
|
TCP_MAXSEG = 0x2
|
||||||
TCP_MAXWIN = 0xffff
|
TCP_MAXWIN = 0xffff
|
||||||
TCP_MAX_SACK = 0x3
|
TCP_MAX_SACK = 0x3
|
||||||
@ -1400,6 +1506,7 @@ const (
|
|||||||
TCP_MSS = 0x200
|
TCP_MSS = 0x200
|
||||||
TCP_NODELAY = 0x1
|
TCP_NODELAY = 0x1
|
||||||
TCP_NOPUSH = 0x10
|
TCP_NOPUSH = 0x10
|
||||||
|
TCP_SACKHOLE_LIMIT = 0x80
|
||||||
TCP_SACK_ENABLE = 0x8
|
TCP_SACK_ENABLE = 0x8
|
||||||
TCSAFLUSH = 0x2
|
TCSAFLUSH = 0x2
|
||||||
TIMER_ABSTIME = 0x1
|
TIMER_ABSTIME = 0x1
|
||||||
@ -1768,7 +1875,7 @@ var signalList = [...]struct {
|
|||||||
{3, "SIGQUIT", "quit"},
|
{3, "SIGQUIT", "quit"},
|
||||||
{4, "SIGILL", "illegal instruction"},
|
{4, "SIGILL", "illegal instruction"},
|
||||||
{5, "SIGTRAP", "trace/BPT trap"},
|
{5, "SIGTRAP", "trace/BPT trap"},
|
||||||
{6, "SIGABRT", "abort trap"},
|
{6, "SIGIOT", "abort trap"},
|
||||||
{7, "SIGEMT", "EMT trap"},
|
{7, "SIGEMT", "EMT trap"},
|
||||||
{8, "SIGFPE", "floating point exception"},
|
{8, "SIGFPE", "floating point exception"},
|
||||||
{9, "SIGKILL", "killed"},
|
{9, "SIGKILL", "killed"},
|
||||||
@ -1795,4 +1902,5 @@ var signalList = [...]struct {
|
|||||||
{30, "SIGUSR1", "user defined signal 1"},
|
{30, "SIGUSR1", "user defined signal 1"},
|
||||||
{31, "SIGUSR2", "user defined signal 2"},
|
{31, "SIGUSR2", "user defined signal 2"},
|
||||||
{32, "SIGTHR", "thread AST"},
|
{32, "SIGTHR", "thread AST"},
|
||||||
|
{28672, "SIGSTKSZ", "unknown signal"},
|
||||||
}
|
}
|
||||||
|
95
gateway/vendor/golang.org/x/sys/unix/zerrors_openbsd_mips64.go
generated
vendored
95
gateway/vendor/golang.org/x/sys/unix/zerrors_openbsd_mips64.go
generated
vendored
@ -112,6 +112,12 @@ const (
|
|||||||
BPF_FILDROP_CAPTURE = 0x1
|
BPF_FILDROP_CAPTURE = 0x1
|
||||||
BPF_FILDROP_DROP = 0x2
|
BPF_FILDROP_DROP = 0x2
|
||||||
BPF_FILDROP_PASS = 0x0
|
BPF_FILDROP_PASS = 0x0
|
||||||
|
BPF_F_DIR_IN = 0x10
|
||||||
|
BPF_F_DIR_MASK = 0x30
|
||||||
|
BPF_F_DIR_OUT = 0x20
|
||||||
|
BPF_F_DIR_SHIFT = 0x4
|
||||||
|
BPF_F_FLOWID = 0x8
|
||||||
|
BPF_F_PRI_MASK = 0x7
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
@ -140,6 +146,7 @@ const (
|
|||||||
BPF_OR = 0x40
|
BPF_OR = 0x40
|
||||||
BPF_RELEASE = 0x30bb6
|
BPF_RELEASE = 0x30bb6
|
||||||
BPF_RET = 0x6
|
BPF_RET = 0x6
|
||||||
|
BPF_RND = 0xc0
|
||||||
BPF_RSH = 0x70
|
BPF_RSH = 0x70
|
||||||
BPF_ST = 0x2
|
BPF_ST = 0x2
|
||||||
BPF_STX = 0x3
|
BPF_STX = 0x3
|
||||||
@ -301,6 +308,8 @@ const (
|
|||||||
EMUL_ENABLED = 0x1
|
EMUL_ENABLED = 0x1
|
||||||
EMUL_NATIVE = 0x2
|
EMUL_NATIVE = 0x2
|
||||||
ENDRUNDISC = 0x9
|
ENDRUNDISC = 0x9
|
||||||
|
ETH64_8021_RSVD_MASK = 0xfffffffffff0
|
||||||
|
ETH64_8021_RSVD_PREFIX = 0x180c2000000
|
||||||
ETHERMIN = 0x2e
|
ETHERMIN = 0x2e
|
||||||
ETHERMTU = 0x5dc
|
ETHERMTU = 0x5dc
|
||||||
ETHERTYPE_8023 = 0x4
|
ETHERTYPE_8023 = 0x4
|
||||||
@ -353,6 +362,7 @@ const (
|
|||||||
ETHERTYPE_DN = 0x6003
|
ETHERTYPE_DN = 0x6003
|
||||||
ETHERTYPE_DOGFIGHT = 0x1989
|
ETHERTYPE_DOGFIGHT = 0x1989
|
||||||
ETHERTYPE_DSMD = 0x8039
|
ETHERTYPE_DSMD = 0x8039
|
||||||
|
ETHERTYPE_EAPOL = 0x888e
|
||||||
ETHERTYPE_ECMA = 0x803
|
ETHERTYPE_ECMA = 0x803
|
||||||
ETHERTYPE_ENCRYPT = 0x803d
|
ETHERTYPE_ENCRYPT = 0x803d
|
||||||
ETHERTYPE_ES = 0x805d
|
ETHERTYPE_ES = 0x805d
|
||||||
@ -413,15 +423,16 @@ const (
|
|||||||
ETHERTYPE_NCD = 0x8149
|
ETHERTYPE_NCD = 0x8149
|
||||||
ETHERTYPE_NESTAR = 0x8006
|
ETHERTYPE_NESTAR = 0x8006
|
||||||
ETHERTYPE_NETBEUI = 0x8191
|
ETHERTYPE_NETBEUI = 0x8191
|
||||||
|
ETHERTYPE_NHRP = 0x2001
|
||||||
ETHERTYPE_NOVELL = 0x8138
|
ETHERTYPE_NOVELL = 0x8138
|
||||||
ETHERTYPE_NS = 0x600
|
ETHERTYPE_NS = 0x600
|
||||||
ETHERTYPE_NSAT = 0x601
|
ETHERTYPE_NSAT = 0x601
|
||||||
ETHERTYPE_NSCOMPAT = 0x807
|
ETHERTYPE_NSCOMPAT = 0x807
|
||||||
|
ETHERTYPE_NSH = 0x984f
|
||||||
ETHERTYPE_NTRAILER = 0x10
|
ETHERTYPE_NTRAILER = 0x10
|
||||||
ETHERTYPE_OS9 = 0x7007
|
ETHERTYPE_OS9 = 0x7007
|
||||||
ETHERTYPE_OS9NET = 0x7009
|
ETHERTYPE_OS9NET = 0x7009
|
||||||
ETHERTYPE_PACER = 0x80c6
|
ETHERTYPE_PACER = 0x80c6
|
||||||
ETHERTYPE_PAE = 0x888e
|
|
||||||
ETHERTYPE_PBB = 0x88e7
|
ETHERTYPE_PBB = 0x88e7
|
||||||
ETHERTYPE_PCS = 0x4242
|
ETHERTYPE_PCS = 0x4242
|
||||||
ETHERTYPE_PLANNING = 0x8044
|
ETHERTYPE_PLANNING = 0x8044
|
||||||
@ -504,10 +515,11 @@ const (
|
|||||||
ETHER_VLAN_ENCAP_LEN = 0x4
|
ETHER_VLAN_ENCAP_LEN = 0x4
|
||||||
EVFILT_AIO = -0x3
|
EVFILT_AIO = -0x3
|
||||||
EVFILT_DEVICE = -0x8
|
EVFILT_DEVICE = -0x8
|
||||||
|
EVFILT_EXCEPT = -0x9
|
||||||
EVFILT_PROC = -0x5
|
EVFILT_PROC = -0x5
|
||||||
EVFILT_READ = -0x1
|
EVFILT_READ = -0x1
|
||||||
EVFILT_SIGNAL = -0x6
|
EVFILT_SIGNAL = -0x6
|
||||||
EVFILT_SYSCOUNT = 0x8
|
EVFILT_SYSCOUNT = 0x9
|
||||||
EVFILT_TIMER = -0x7
|
EVFILT_TIMER = -0x7
|
||||||
EVFILT_VNODE = -0x4
|
EVFILT_VNODE = -0x4
|
||||||
EVFILT_WRITE = -0x2
|
EVFILT_WRITE = -0x2
|
||||||
@ -529,7 +541,7 @@ const (
|
|||||||
EV_FLAG1 = 0x2000
|
EV_FLAG1 = 0x2000
|
||||||
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
|
||||||
EXTPROC = 0x800
|
EXTPROC = 0x800
|
||||||
@ -795,6 +807,7 @@ const (
|
|||||||
IFT_VOICEOVERCABLE = 0xc6
|
IFT_VOICEOVERCABLE = 0xc6
|
||||||
IFT_VOICEOVERFRAMERELAY = 0x99
|
IFT_VOICEOVERFRAMERELAY = 0x99
|
||||||
IFT_VOICEOVERIP = 0x68
|
IFT_VOICEOVERIP = 0x68
|
||||||
|
IFT_WIREGUARD = 0xfb
|
||||||
IFT_X213 = 0x5d
|
IFT_X213 = 0x5d
|
||||||
IFT_X25 = 0x5
|
IFT_X25 = 0x5
|
||||||
IFT_X25DDN = 0x4
|
IFT_X25DDN = 0x4
|
||||||
@ -860,6 +873,7 @@ const (
|
|||||||
IPPROTO_RAW = 0xff
|
IPPROTO_RAW = 0xff
|
||||||
IPPROTO_ROUTING = 0x2b
|
IPPROTO_ROUTING = 0x2b
|
||||||
IPPROTO_RSVP = 0x2e
|
IPPROTO_RSVP = 0x2e
|
||||||
|
IPPROTO_SCTP = 0x84
|
||||||
IPPROTO_TCP = 0x6
|
IPPROTO_TCP = 0x6
|
||||||
IPPROTO_TP = 0x1d
|
IPPROTO_TP = 0x1d
|
||||||
IPPROTO_UDP = 0x11
|
IPPROTO_UDP = 0x11
|
||||||
@ -970,6 +984,9 @@ const (
|
|||||||
IP_TTL = 0x4
|
IP_TTL = 0x4
|
||||||
ISIG = 0x80
|
ISIG = 0x80
|
||||||
ISTRIP = 0x20
|
ISTRIP = 0x20
|
||||||
|
ITIMER_PROF = 0x2
|
||||||
|
ITIMER_REAL = 0x0
|
||||||
|
ITIMER_VIRTUAL = 0x1
|
||||||
IUCLC = 0x1000
|
IUCLC = 0x1000
|
||||||
IXANY = 0x800
|
IXANY = 0x800
|
||||||
IXOFF = 0x400
|
IXOFF = 0x400
|
||||||
@ -1041,6 +1058,19 @@ const (
|
|||||||
MNT_WAIT = 0x1
|
MNT_WAIT = 0x1
|
||||||
MNT_WANTRDWR = 0x2000000
|
MNT_WANTRDWR = 0x2000000
|
||||||
MNT_WXALLOWED = 0x800
|
MNT_WXALLOWED = 0x800
|
||||||
|
MOUNT_AFS = "afs"
|
||||||
|
MOUNT_CD9660 = "cd9660"
|
||||||
|
MOUNT_EXT2FS = "ext2fs"
|
||||||
|
MOUNT_FFS = "ffs"
|
||||||
|
MOUNT_FUSEFS = "fuse"
|
||||||
|
MOUNT_MFS = "mfs"
|
||||||
|
MOUNT_MSDOS = "msdos"
|
||||||
|
MOUNT_NCPFS = "ncpfs"
|
||||||
|
MOUNT_NFS = "nfs"
|
||||||
|
MOUNT_NTFS = "ntfs"
|
||||||
|
MOUNT_TMPFS = "tmpfs"
|
||||||
|
MOUNT_UDF = "udf"
|
||||||
|
MOUNT_UFS = "ffs"
|
||||||
MSG_BCAST = 0x100
|
MSG_BCAST = 0x100
|
||||||
MSG_CMSG_CLOEXEC = 0x800
|
MSG_CMSG_CLOEXEC = 0x800
|
||||||
MSG_CTRUNC = 0x20
|
MSG_CTRUNC = 0x20
|
||||||
@ -1053,6 +1083,7 @@ const (
|
|||||||
MSG_PEEK = 0x2
|
MSG_PEEK = 0x2
|
||||||
MSG_TRUNC = 0x10
|
MSG_TRUNC = 0x10
|
||||||
MSG_WAITALL = 0x40
|
MSG_WAITALL = 0x40
|
||||||
|
MSG_WAITFORONE = 0x1000
|
||||||
MS_ASYNC = 0x1
|
MS_ASYNC = 0x1
|
||||||
MS_INVALIDATE = 0x4
|
MS_INVALIDATE = 0x4
|
||||||
MS_SYNC = 0x2
|
MS_SYNC = 0x2
|
||||||
@ -1061,7 +1092,8 @@ const (
|
|||||||
NET_RT_FLAGS = 0x2
|
NET_RT_FLAGS = 0x2
|
||||||
NET_RT_IFLIST = 0x3
|
NET_RT_IFLIST = 0x3
|
||||||
NET_RT_IFNAMES = 0x6
|
NET_RT_IFNAMES = 0x6
|
||||||
NET_RT_MAXID = 0x7
|
NET_RT_MAXID = 0x8
|
||||||
|
NET_RT_SOURCE = 0x7
|
||||||
NET_RT_STATS = 0x4
|
NET_RT_STATS = 0x4
|
||||||
NET_RT_TABLE = 0x5
|
NET_RT_TABLE = 0x5
|
||||||
NFDBITS = 0x20
|
NFDBITS = 0x20
|
||||||
@ -1078,6 +1110,7 @@ const (
|
|||||||
NOTE_FORK = 0x40000000
|
NOTE_FORK = 0x40000000
|
||||||
NOTE_LINK = 0x10
|
NOTE_LINK = 0x10
|
||||||
NOTE_LOWAT = 0x1
|
NOTE_LOWAT = 0x1
|
||||||
|
NOTE_OOB = 0x4
|
||||||
NOTE_PCTRLMASK = 0xf0000000
|
NOTE_PCTRLMASK = 0xf0000000
|
||||||
NOTE_PDATAMASK = 0xfffff
|
NOTE_PDATAMASK = 0xfffff
|
||||||
NOTE_RENAME = 0x20
|
NOTE_RENAME = 0x20
|
||||||
@ -1214,7 +1247,7 @@ const (
|
|||||||
RTM_PROPOSAL = 0x13
|
RTM_PROPOSAL = 0x13
|
||||||
RTM_REDIRECT = 0x6
|
RTM_REDIRECT = 0x6
|
||||||
RTM_RESOLVE = 0xb
|
RTM_RESOLVE = 0xb
|
||||||
RTM_RTTUNIT = 0xf4240
|
RTM_SOURCE = 0x16
|
||||||
RTM_VERSION = 0x5
|
RTM_VERSION = 0x5
|
||||||
RTV_EXPIRE = 0x4
|
RTV_EXPIRE = 0x4
|
||||||
RTV_HOPCOUNT = 0x2
|
RTV_HOPCOUNT = 0x2
|
||||||
@ -1232,6 +1265,9 @@ const (
|
|||||||
RUSAGE_THREAD = 0x1
|
RUSAGE_THREAD = 0x1
|
||||||
SCM_RIGHTS = 0x1
|
SCM_RIGHTS = 0x1
|
||||||
SCM_TIMESTAMP = 0x4
|
SCM_TIMESTAMP = 0x4
|
||||||
|
SEEK_CUR = 0x1
|
||||||
|
SEEK_END = 0x2
|
||||||
|
SEEK_SET = 0x0
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
@ -1248,30 +1284,30 @@ const (
|
|||||||
SIOCBRDGDELS = 0x80606942
|
SIOCBRDGDELS = 0x80606942
|
||||||
SIOCBRDGFLUSH = 0x80606948
|
SIOCBRDGFLUSH = 0x80606948
|
||||||
SIOCBRDGFRL = 0x808c694e
|
SIOCBRDGFRL = 0x808c694e
|
||||||
SIOCBRDGGCACHE = 0xc0186941
|
SIOCBRDGGCACHE = 0xc0146941
|
||||||
SIOCBRDGGFD = 0xc0186952
|
SIOCBRDGGFD = 0xc0146952
|
||||||
SIOCBRDGGHT = 0xc0186951
|
SIOCBRDGGHT = 0xc0146951
|
||||||
SIOCBRDGGIFFLGS = 0xc060693e
|
SIOCBRDGGIFFLGS = 0xc060693e
|
||||||
SIOCBRDGGMA = 0xc0186953
|
SIOCBRDGGMA = 0xc0146953
|
||||||
SIOCBRDGGPARAM = 0xc0406958
|
SIOCBRDGGPARAM = 0xc0406958
|
||||||
SIOCBRDGGPRI = 0xc0186950
|
SIOCBRDGGPRI = 0xc0146950
|
||||||
SIOCBRDGGRL = 0xc030694f
|
SIOCBRDGGRL = 0xc030694f
|
||||||
SIOCBRDGGTO = 0xc0186946
|
SIOCBRDGGTO = 0xc0146946
|
||||||
SIOCBRDGIFS = 0xc0606942
|
SIOCBRDGIFS = 0xc0606942
|
||||||
SIOCBRDGRTS = 0xc0206943
|
SIOCBRDGRTS = 0xc0206943
|
||||||
SIOCBRDGSADDR = 0xc1286944
|
SIOCBRDGSADDR = 0xc1286944
|
||||||
SIOCBRDGSCACHE = 0x80186940
|
SIOCBRDGSCACHE = 0x80146940
|
||||||
SIOCBRDGSFD = 0x80186952
|
SIOCBRDGSFD = 0x80146952
|
||||||
SIOCBRDGSHT = 0x80186951
|
SIOCBRDGSHT = 0x80146951
|
||||||
SIOCBRDGSIFCOST = 0x80606955
|
SIOCBRDGSIFCOST = 0x80606955
|
||||||
SIOCBRDGSIFFLGS = 0x8060693f
|
SIOCBRDGSIFFLGS = 0x8060693f
|
||||||
SIOCBRDGSIFPRIO = 0x80606954
|
SIOCBRDGSIFPRIO = 0x80606954
|
||||||
SIOCBRDGSIFPROT = 0x8060694a
|
SIOCBRDGSIFPROT = 0x8060694a
|
||||||
SIOCBRDGSMA = 0x80186953
|
SIOCBRDGSMA = 0x80146953
|
||||||
SIOCBRDGSPRI = 0x80186950
|
SIOCBRDGSPRI = 0x80146950
|
||||||
SIOCBRDGSPROTO = 0x8018695a
|
SIOCBRDGSPROTO = 0x8014695a
|
||||||
SIOCBRDGSTO = 0x80186945
|
SIOCBRDGSTO = 0x80146945
|
||||||
SIOCBRDGSTXHC = 0x80186959
|
SIOCBRDGSTXHC = 0x80146959
|
||||||
SIOCDELLABEL = 0x80206997
|
SIOCDELLABEL = 0x80206997
|
||||||
SIOCDELMULTI = 0x80206932
|
SIOCDELMULTI = 0x80206932
|
||||||
SIOCDIFADDR = 0x80206919
|
SIOCDIFADDR = 0x80206919
|
||||||
@ -1378,11 +1414,6 @@ const (
|
|||||||
SIOCSVH = 0xc02069f5
|
SIOCSVH = 0xc02069f5
|
||||||
SIOCSVNETFLOWID = 0x802069c3
|
SIOCSVNETFLOWID = 0x802069c3
|
||||||
SIOCSVNETID = 0x802069a6
|
SIOCSVNETID = 0x802069a6
|
||||||
SIOCSWGDPID = 0xc018695b
|
|
||||||
SIOCSWGMAXFLOW = 0xc0186960
|
|
||||||
SIOCSWGMAXGROUP = 0xc018695d
|
|
||||||
SIOCSWSDPID = 0x8018695c
|
|
||||||
SIOCSWSPORTNO = 0xc060695f
|
|
||||||
SOCK_CLOEXEC = 0x8000
|
SOCK_CLOEXEC = 0x8000
|
||||||
SOCK_DGRAM = 0x2
|
SOCK_DGRAM = 0x2
|
||||||
SOCK_DNS = 0x1000
|
SOCK_DNS = 0x1000
|
||||||
@ -1455,7 +1486,18 @@ const (
|
|||||||
TCOFLUSH = 0x2
|
TCOFLUSH = 0x2
|
||||||
TCOOFF = 0x1
|
TCOOFF = 0x1
|
||||||
TCOON = 0x2
|
TCOON = 0x2
|
||||||
TCP_MAXBURST = 0x4
|
TCPOPT_EOL = 0x0
|
||||||
|
TCPOPT_MAXSEG = 0x2
|
||||||
|
TCPOPT_NOP = 0x1
|
||||||
|
TCPOPT_SACK = 0x5
|
||||||
|
TCPOPT_SACK_HDR = 0x1010500
|
||||||
|
TCPOPT_SACK_PERMITTED = 0x4
|
||||||
|
TCPOPT_SACK_PERMIT_HDR = 0x1010402
|
||||||
|
TCPOPT_SIGNATURE = 0x13
|
||||||
|
TCPOPT_TIMESTAMP = 0x8
|
||||||
|
TCPOPT_TSTAMP_HDR = 0x101080a
|
||||||
|
TCPOPT_WINDOW = 0x3
|
||||||
|
TCP_INFO = 0x9
|
||||||
TCP_MAXSEG = 0x2
|
TCP_MAXSEG = 0x2
|
||||||
TCP_MAXWIN = 0xffff
|
TCP_MAXWIN = 0xffff
|
||||||
TCP_MAX_SACK = 0x3
|
TCP_MAX_SACK = 0x3
|
||||||
@ -1833,7 +1875,7 @@ var signalList = [...]struct {
|
|||||||
{3, "SIGQUIT", "quit"},
|
{3, "SIGQUIT", "quit"},
|
||||||
{4, "SIGILL", "illegal instruction"},
|
{4, "SIGILL", "illegal instruction"},
|
||||||
{5, "SIGTRAP", "trace/BPT trap"},
|
{5, "SIGTRAP", "trace/BPT trap"},
|
||||||
{6, "SIGABRT", "abort trap"},
|
{6, "SIGIOT", "abort trap"},
|
||||||
{7, "SIGEMT", "EMT trap"},
|
{7, "SIGEMT", "EMT trap"},
|
||||||
{8, "SIGFPE", "floating point exception"},
|
{8, "SIGFPE", "floating point exception"},
|
||||||
{9, "SIGKILL", "killed"},
|
{9, "SIGKILL", "killed"},
|
||||||
@ -1860,4 +1902,5 @@ var signalList = [...]struct {
|
|||||||
{30, "SIGUSR1", "user defined signal 1"},
|
{30, "SIGUSR1", "user defined signal 1"},
|
||||||
{31, "SIGUSR2", "user defined signal 2"},
|
{31, "SIGUSR2", "user defined signal 2"},
|
||||||
{32, "SIGTHR", "thread AST"},
|
{32, "SIGTHR", "thread AST"},
|
||||||
|
{81920, "SIGSTKSZ", "unknown signal"},
|
||||||
}
|
}
|
||||||
|
1905
gateway/vendor/golang.org/x/sys/unix/zerrors_openbsd_ppc64.go
generated
vendored
Normal file
1905
gateway/vendor/golang.org/x/sys/unix/zerrors_openbsd_ppc64.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1904
gateway/vendor/golang.org/x/sys/unix/zerrors_openbsd_riscv64.go
generated
vendored
Normal file
1904
gateway/vendor/golang.org/x/sys/unix/zerrors_openbsd_riscv64.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
40
gateway/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_13.go
generated
vendored
40
gateway/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_13.go
generated
vendored
@ -1,40 +0,0 @@
|
|||||||
// go run mksyscall.go -tags darwin,amd64,go1.13 syscall_darwin.1_13.go
|
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
|
||||||
|
|
||||||
//go:build darwin && amd64 && go1.13
|
|
||||||
// +build darwin,amd64,go1.13
|
|
||||||
|
|
||||||
package unix
|
|
||||||
|
|
||||||
import (
|
|
||||||
"syscall"
|
|
||||||
"unsafe"
|
|
||||||
)
|
|
||||||
|
|
||||||
var _ syscall.Errno
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func closedir(dir uintptr) (err error) {
|
|
||||||
_, _, e1 := syscall_syscall(libc_closedir_trampoline_addr, uintptr(dir), 0, 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
var libc_closedir_trampoline_addr uintptr
|
|
||||||
|
|
||||||
//go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib"
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) {
|
|
||||||
r0, _, _ := syscall_syscall(libc_readdir_r_trampoline_addr, uintptr(dir), uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result)))
|
|
||||||
res = Errno(r0)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
var libc_readdir_r_trampoline_addr uintptr
|
|
||||||
|
|
||||||
//go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib"
|
|
25
gateway/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_13.s
generated
vendored
25
gateway/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_13.s
generated
vendored
@ -1,25 +0,0 @@
|
|||||||
// go run mkasm.go darwin amd64
|
|
||||||
// Code generated by the command above; DO NOT EDIT.
|
|
||||||
|
|
||||||
//go:build go1.13
|
|
||||||
// +build go1.13
|
|
||||||
|
|
||||||
#include "textflag.h"
|
|
||||||
|
|
||||||
TEXT libc_fdopendir_trampoline<>(SB),NOSPLIT,$0-0
|
|
||||||
JMP libc_fdopendir(SB)
|
|
||||||
|
|
||||||
GLOBL ·libc_fdopendir_trampoline_addr(SB), RODATA, $8
|
|
||||||
DATA ·libc_fdopendir_trampoline_addr(SB)/8, $libc_fdopendir_trampoline<>(SB)
|
|
||||||
|
|
||||||
TEXT libc_closedir_trampoline<>(SB),NOSPLIT,$0-0
|
|
||||||
JMP libc_closedir(SB)
|
|
||||||
|
|
||||||
GLOBL ·libc_closedir_trampoline_addr(SB), RODATA, $8
|
|
||||||
DATA ·libc_closedir_trampoline_addr(SB)/8, $libc_closedir_trampoline<>(SB)
|
|
||||||
|
|
||||||
TEXT libc_readdir_r_trampoline<>(SB),NOSPLIT,$0-0
|
|
||||||
JMP libc_readdir_r(SB)
|
|
||||||
|
|
||||||
GLOBL ·libc_readdir_r_trampoline_addr(SB), RODATA, $8
|
|
||||||
DATA ·libc_readdir_r_trampoline_addr(SB)/8, $libc_readdir_r_trampoline<>(SB)
|
|
32
gateway/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
generated
vendored
32
gateway/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
generated
vendored
@ -1,8 +1,8 @@
|
|||||||
// go run mksyscall.go -tags darwin,amd64,go1.12 syscall_bsd.go syscall_darwin.go syscall_darwin_amd64.go
|
// go run mksyscall.go -tags darwin,amd64 syscall_bsd.go syscall_darwin.go syscall_darwin_amd64.go
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
//go:build darwin && amd64 && go1.12
|
//go:build darwin && amd64
|
||||||
// +build darwin,amd64,go1.12
|
// +build darwin,amd64
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
@ -463,6 +463,32 @@ var libc_munlockall_trampoline_addr uintptr
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func closedir(dir uintptr) (err error) {
|
||||||
|
_, _, e1 := syscall_syscall(libc_closedir_trampoline_addr, uintptr(dir), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
var libc_closedir_trampoline_addr uintptr
|
||||||
|
|
||||||
|
//go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib"
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) {
|
||||||
|
r0, _, _ := syscall_syscall(libc_readdir_r_trampoline_addr, uintptr(dir), uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result)))
|
||||||
|
res = Errno(r0)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
var libc_readdir_r_trampoline_addr uintptr
|
||||||
|
|
||||||
|
//go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib"
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func pipe(p *[2]int32) (err error) {
|
func pipe(p *[2]int32) (err error) {
|
||||||
_, _, e1 := syscall_rawSyscall(libc_pipe_trampoline_addr, uintptr(unsafe.Pointer(p)), 0, 0)
|
_, _, e1 := syscall_rawSyscall(libc_pipe_trampoline_addr, uintptr(unsafe.Pointer(p)), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
21
gateway/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s
generated
vendored
21
gateway/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s
generated
vendored
@ -1,11 +1,14 @@
|
|||||||
// go run mkasm.go darwin amd64
|
// go run mkasm.go darwin amd64
|
||||||
// Code generated by the command above; DO NOT EDIT.
|
// Code generated by the command above; DO NOT EDIT.
|
||||||
|
|
||||||
//go:build go1.12
|
|
||||||
// +build go1.12
|
|
||||||
|
|
||||||
#include "textflag.h"
|
#include "textflag.h"
|
||||||
|
|
||||||
|
TEXT libc_fdopendir_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fdopendir(SB)
|
||||||
|
|
||||||
|
GLOBL ·libc_fdopendir_trampoline_addr(SB), RODATA, $8
|
||||||
|
DATA ·libc_fdopendir_trampoline_addr(SB)/8, $libc_fdopendir_trampoline<>(SB)
|
||||||
|
|
||||||
TEXT libc_getgroups_trampoline<>(SB),NOSPLIT,$0-0
|
TEXT libc_getgroups_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
JMP libc_getgroups(SB)
|
JMP libc_getgroups(SB)
|
||||||
|
|
||||||
@ -174,6 +177,18 @@ TEXT libc_munlockall_trampoline<>(SB),NOSPLIT,$0-0
|
|||||||
GLOBL ·libc_munlockall_trampoline_addr(SB), RODATA, $8
|
GLOBL ·libc_munlockall_trampoline_addr(SB), RODATA, $8
|
||||||
DATA ·libc_munlockall_trampoline_addr(SB)/8, $libc_munlockall_trampoline<>(SB)
|
DATA ·libc_munlockall_trampoline_addr(SB)/8, $libc_munlockall_trampoline<>(SB)
|
||||||
|
|
||||||
|
TEXT libc_closedir_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_closedir(SB)
|
||||||
|
|
||||||
|
GLOBL ·libc_closedir_trampoline_addr(SB), RODATA, $8
|
||||||
|
DATA ·libc_closedir_trampoline_addr(SB)/8, $libc_closedir_trampoline<>(SB)
|
||||||
|
|
||||||
|
TEXT libc_readdir_r_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_readdir_r(SB)
|
||||||
|
|
||||||
|
GLOBL ·libc_readdir_r_trampoline_addr(SB), RODATA, $8
|
||||||
|
DATA ·libc_readdir_r_trampoline_addr(SB)/8, $libc_readdir_r_trampoline<>(SB)
|
||||||
|
|
||||||
TEXT libc_pipe_trampoline<>(SB),NOSPLIT,$0-0
|
TEXT libc_pipe_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
JMP libc_pipe(SB)
|
JMP libc_pipe(SB)
|
||||||
|
|
||||||
|
40
gateway/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_13.go
generated
vendored
40
gateway/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_13.go
generated
vendored
@ -1,40 +0,0 @@
|
|||||||
// go run mksyscall.go -tags darwin,arm64,go1.13 syscall_darwin.1_13.go
|
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
|
||||||
|
|
||||||
//go:build darwin && arm64 && go1.13
|
|
||||||
// +build darwin,arm64,go1.13
|
|
||||||
|
|
||||||
package unix
|
|
||||||
|
|
||||||
import (
|
|
||||||
"syscall"
|
|
||||||
"unsafe"
|
|
||||||
)
|
|
||||||
|
|
||||||
var _ syscall.Errno
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func closedir(dir uintptr) (err error) {
|
|
||||||
_, _, e1 := syscall_syscall(libc_closedir_trampoline_addr, uintptr(dir), 0, 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
var libc_closedir_trampoline_addr uintptr
|
|
||||||
|
|
||||||
//go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib"
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) {
|
|
||||||
r0, _, _ := syscall_syscall(libc_readdir_r_trampoline_addr, uintptr(dir), uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result)))
|
|
||||||
res = Errno(r0)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
var libc_readdir_r_trampoline_addr uintptr
|
|
||||||
|
|
||||||
//go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib"
|
|
25
gateway/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_13.s
generated
vendored
25
gateway/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_13.s
generated
vendored
@ -1,25 +0,0 @@
|
|||||||
// go run mkasm.go darwin arm64
|
|
||||||
// Code generated by the command above; DO NOT EDIT.
|
|
||||||
|
|
||||||
//go:build go1.13
|
|
||||||
// +build go1.13
|
|
||||||
|
|
||||||
#include "textflag.h"
|
|
||||||
|
|
||||||
TEXT libc_fdopendir_trampoline<>(SB),NOSPLIT,$0-0
|
|
||||||
JMP libc_fdopendir(SB)
|
|
||||||
|
|
||||||
GLOBL ·libc_fdopendir_trampoline_addr(SB), RODATA, $8
|
|
||||||
DATA ·libc_fdopendir_trampoline_addr(SB)/8, $libc_fdopendir_trampoline<>(SB)
|
|
||||||
|
|
||||||
TEXT libc_closedir_trampoline<>(SB),NOSPLIT,$0-0
|
|
||||||
JMP libc_closedir(SB)
|
|
||||||
|
|
||||||
GLOBL ·libc_closedir_trampoline_addr(SB), RODATA, $8
|
|
||||||
DATA ·libc_closedir_trampoline_addr(SB)/8, $libc_closedir_trampoline<>(SB)
|
|
||||||
|
|
||||||
TEXT libc_readdir_r_trampoline<>(SB),NOSPLIT,$0-0
|
|
||||||
JMP libc_readdir_r(SB)
|
|
||||||
|
|
||||||
GLOBL ·libc_readdir_r_trampoline_addr(SB), RODATA, $8
|
|
||||||
DATA ·libc_readdir_r_trampoline_addr(SB)/8, $libc_readdir_r_trampoline<>(SB)
|
|
32
gateway/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
generated
vendored
32
gateway/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
generated
vendored
@ -1,8 +1,8 @@
|
|||||||
// go run mksyscall.go -tags darwin,arm64,go1.12 syscall_bsd.go syscall_darwin.go syscall_darwin_arm64.go
|
// go run mksyscall.go -tags darwin,arm64 syscall_bsd.go syscall_darwin.go syscall_darwin_arm64.go
|
||||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
//go:build darwin && arm64 && go1.12
|
//go:build darwin && arm64
|
||||||
// +build darwin,arm64,go1.12
|
// +build darwin,arm64
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
@ -463,6 +463,32 @@ var libc_munlockall_trampoline_addr uintptr
|
|||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func closedir(dir uintptr) (err error) {
|
||||||
|
_, _, e1 := syscall_syscall(libc_closedir_trampoline_addr, uintptr(dir), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
var libc_closedir_trampoline_addr uintptr
|
||||||
|
|
||||||
|
//go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib"
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) {
|
||||||
|
r0, _, _ := syscall_syscall(libc_readdir_r_trampoline_addr, uintptr(dir), uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result)))
|
||||||
|
res = Errno(r0)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
var libc_readdir_r_trampoline_addr uintptr
|
||||||
|
|
||||||
|
//go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib"
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func pipe(p *[2]int32) (err error) {
|
func pipe(p *[2]int32) (err error) {
|
||||||
_, _, e1 := syscall_rawSyscall(libc_pipe_trampoline_addr, uintptr(unsafe.Pointer(p)), 0, 0)
|
_, _, e1 := syscall_rawSyscall(libc_pipe_trampoline_addr, uintptr(unsafe.Pointer(p)), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
21
gateway/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s
generated
vendored
21
gateway/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s
generated
vendored
@ -1,11 +1,14 @@
|
|||||||
// go run mkasm.go darwin arm64
|
// go run mkasm.go darwin arm64
|
||||||
// Code generated by the command above; DO NOT EDIT.
|
// Code generated by the command above; DO NOT EDIT.
|
||||||
|
|
||||||
//go:build go1.12
|
|
||||||
// +build go1.12
|
|
||||||
|
|
||||||
#include "textflag.h"
|
#include "textflag.h"
|
||||||
|
|
||||||
|
TEXT libc_fdopendir_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_fdopendir(SB)
|
||||||
|
|
||||||
|
GLOBL ·libc_fdopendir_trampoline_addr(SB), RODATA, $8
|
||||||
|
DATA ·libc_fdopendir_trampoline_addr(SB)/8, $libc_fdopendir_trampoline<>(SB)
|
||||||
|
|
||||||
TEXT libc_getgroups_trampoline<>(SB),NOSPLIT,$0-0
|
TEXT libc_getgroups_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
JMP libc_getgroups(SB)
|
JMP libc_getgroups(SB)
|
||||||
|
|
||||||
@ -174,6 +177,18 @@ TEXT libc_munlockall_trampoline<>(SB),NOSPLIT,$0-0
|
|||||||
GLOBL ·libc_munlockall_trampoline_addr(SB), RODATA, $8
|
GLOBL ·libc_munlockall_trampoline_addr(SB), RODATA, $8
|
||||||
DATA ·libc_munlockall_trampoline_addr(SB)/8, $libc_munlockall_trampoline<>(SB)
|
DATA ·libc_munlockall_trampoline_addr(SB)/8, $libc_munlockall_trampoline<>(SB)
|
||||||
|
|
||||||
|
TEXT libc_closedir_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_closedir(SB)
|
||||||
|
|
||||||
|
GLOBL ·libc_closedir_trampoline_addr(SB), RODATA, $8
|
||||||
|
DATA ·libc_closedir_trampoline_addr(SB)/8, $libc_closedir_trampoline<>(SB)
|
||||||
|
|
||||||
|
TEXT libc_readdir_r_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
|
JMP libc_readdir_r(SB)
|
||||||
|
|
||||||
|
GLOBL ·libc_readdir_r_trampoline_addr(SB), RODATA, $8
|
||||||
|
DATA ·libc_readdir_r_trampoline_addr(SB)/8, $libc_readdir_r_trampoline<>(SB)
|
||||||
|
|
||||||
TEXT libc_pipe_trampoline<>(SB),NOSPLIT,$0-0
|
TEXT libc_pipe_trampoline<>(SB),NOSPLIT,$0-0
|
||||||
JMP libc_pipe(SB)
|
JMP libc_pipe(SB)
|
||||||
|
|
||||||
|
10
gateway/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go
generated
vendored
10
gateway/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go
generated
vendored
@ -552,6 +552,16 @@ func Chroot(path string) (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 ClockGettime(clockid int32, time *Timespec) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Close(fd int) (err error) {
|
func Close(fd int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
|
_, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
10
gateway/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go
generated
vendored
10
gateway/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go
generated
vendored
@ -544,6 +544,16 @@ func Chroot(path string) (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 ClockGettime(clockid int32, time *Timespec) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Close(fd int) (err error) {
|
func Close(fd int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
|
_, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
10
gateway/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go
generated
vendored
10
gateway/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go
generated
vendored
@ -544,6 +544,16 @@ func Chroot(path string) (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 ClockGettime(clockid int32, time *Timespec) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Close(fd int) (err error) {
|
func Close(fd int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
|
_, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user