Move some functions to go-xmpp, update deps, more lining
This commit is contained in:
110
event_parser.go
110
event_parser.go
@@ -94,18 +94,12 @@ func parseEvent(e interface{}) { //nolint:maintidx,gocognit,gocyclo
|
|||||||
// Запрос номера версии приложения
|
// Запрос номера версии приложения
|
||||||
case "jabber:iq:version":
|
case "jabber:iq:version":
|
||||||
log.Infof("Got IQ get request for version from %s", v.From)
|
log.Infof("Got IQ get request for version from %s", v.From)
|
||||||
answer := "<query xmlns=\"jabber:iq:version\">" //nolint:wsl
|
|
||||||
answer += "<name>buny-jabber-bot</name>"
|
|
||||||
answer += "<version>1.с_чем-то</version>"
|
|
||||||
answer += "<os>линупс</os>"
|
|
||||||
answer += "</query>"
|
|
||||||
|
|
||||||
if id, err := talk.RawInformation(
|
if id, err := talk.IqVersionResponse(
|
||||||
v.To,
|
v,
|
||||||
v.From,
|
"buny-jabber-bot",
|
||||||
v.ID,
|
"1.с_чем-то",
|
||||||
xmpp.IQTypeResult,
|
"линупс",
|
||||||
answer,
|
|
||||||
); err != nil {
|
); err != nil {
|
||||||
err := fmt.Errorf(
|
err := fmt.Errorf(
|
||||||
"unable to send version info to jabber server: id=%s, err=%w",
|
"unable to send version info to jabber server: id=%s, err=%w",
|
||||||
@@ -124,13 +118,7 @@ func parseEvent(e interface{}) { //nolint:maintidx,gocognit,gocyclo
|
|||||||
case "urn:xmpp:ping":
|
case "urn:xmpp:ping":
|
||||||
log.Infof("Got IQ get request for pong from %s", v.From)
|
log.Infof("Got IQ get request for pong from %s", v.From)
|
||||||
|
|
||||||
if id, err := talk.RawInformation(
|
if id, err := talk.PingResponse(v); err != nil {
|
||||||
v.To,
|
|
||||||
v.From,
|
|
||||||
v.ID,
|
|
||||||
xmpp.IQTypeResult,
|
|
||||||
"",
|
|
||||||
); err != nil {
|
|
||||||
err := fmt.Errorf(
|
err := fmt.Errorf(
|
||||||
"unable to send pong to jabber server: id=%s, err=%w",
|
"unable to send pong to jabber server: id=%s, err=%w",
|
||||||
id,
|
id,
|
||||||
@@ -145,22 +133,11 @@ func parseEvent(e interface{}) { //nolint:maintidx,gocognit,gocyclo
|
|||||||
parseError = false
|
parseError = false
|
||||||
|
|
||||||
// У нас запросили время последней активности. В нашем случае это либо время запуска клиента, либо время
|
// У нас запросили время последней активности. В нашем случае это либо время запуска клиента, либо время
|
||||||
// последней фразы в чяти.
|
// последней фразы в чяти. Xep-0012.
|
||||||
case "jabber:iq:last":
|
case "jabber:iq:last":
|
||||||
log.Infof("Got IQ get last activity time request from %s", v.From)
|
log.Infof("Got IQ get last activity time request from %s", v.From)
|
||||||
|
|
||||||
answer := fmt.Sprintf(
|
if id, err := talk.JabberIqLastResponse(v, lastActivity); err != nil {
|
||||||
"<query xmlns=\"jabber:iq:last\" seconds=\"%d\" />",
|
|
||||||
time.Now().Unix()-lastActivity,
|
|
||||||
)
|
|
||||||
|
|
||||||
if id, err := talk.RawInformation(
|
|
||||||
v.To,
|
|
||||||
v.From,
|
|
||||||
v.ID,
|
|
||||||
xmpp.IQTypeResult,
|
|
||||||
answer,
|
|
||||||
); err != nil {
|
|
||||||
err := fmt.Errorf(
|
err := fmt.Errorf(
|
||||||
"unable to send last activity time to jabber server: id=%s, err=%w",
|
"unable to send last activity time to jabber server: id=%s, err=%w",
|
||||||
id,
|
id,
|
||||||
@@ -206,26 +183,18 @@ func parseEvent(e interface{}) { //nolint:maintidx,gocognit,gocyclo
|
|||||||
|
|
||||||
parseError = false
|
parseError = false
|
||||||
|
|
||||||
// Спрашивают список команд, чтобы поуправлять этим клиентом
|
// Спрашивают список команд, чтобы поуправлять этим клиентом (xep-0030)
|
||||||
case xmpp.XMPPNS_DISCO_ITEMS:
|
case xmpp.XMPPNS_DISCO_ITEMS:
|
||||||
log.Infof("Got IQ get disco#items request from %s, answer service unavailable", v.From)
|
log.Infof("Got IQ get disco#items request from %s, answer service unavailable", v.From)
|
||||||
|
|
||||||
answer := "<query xmlns=\"http://jabber.org/protocol/disco#info\" "
|
if _, err := talk.ErrorServiceUnavailable(
|
||||||
answer += "node=\"http://jabber.org/protocol/commands\" />"
|
v,
|
||||||
answer += "<error type=\"cancel\">" //nolint:goconst
|
"http://jabber.org/protocol/disco#info",
|
||||||
answer += "<service-unavailable xmlns=\"urn:ietf:params:xml:ns:xmpp-stanzas\" />"
|
"http://jabber.org/protocol/commands",
|
||||||
answer += "</error>" //nolint:goconst
|
|
||||||
|
|
||||||
if id, err := talk.RawInformation(
|
|
||||||
v.To,
|
|
||||||
v.From,
|
|
||||||
v.ID,
|
|
||||||
xmpp.IQTypeError,
|
|
||||||
answer,
|
|
||||||
); err != nil {
|
); err != nil {
|
||||||
err := fmt.Errorf(
|
err := fmt.Errorf(
|
||||||
"unable to send disco#items to jabber server: id=%s, err=%w",
|
"unable to send disco#items to jabber server: id=%s, err=%w",
|
||||||
id,
|
v.ID,
|
||||||
err,
|
err,
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -256,18 +225,7 @@ func parseEvent(e interface{}) { //nolint:maintidx,gocognit,gocyclo
|
|||||||
case "urn:xmpp:time":
|
case "urn:xmpp:time":
|
||||||
log.Infof("Got IQ get time request from %s", v.From)
|
log.Infof("Got IQ get time request from %s", v.From)
|
||||||
|
|
||||||
answer := fmt.Sprintf(
|
if id, err := talk.UrnXmppTimeResponse(v, "+00:00"); err != nil {
|
||||||
"<time xmlns=\"urn:xmpp:time\"><tzo>+00:00</tzo><utc>%s</utc></time>",
|
|
||||||
time.Now().UTC().Format(time.RFC3339),
|
|
||||||
)
|
|
||||||
|
|
||||||
if id, err := talk.RawInformation(
|
|
||||||
v.To,
|
|
||||||
v.From,
|
|
||||||
v.ID,
|
|
||||||
xmpp.IQTypeResult,
|
|
||||||
answer,
|
|
||||||
); err != nil {
|
|
||||||
err := fmt.Errorf(
|
err := fmt.Errorf(
|
||||||
"unable to send urn:xmpp:time to jabber server: id=%s, err=%w",
|
"unable to send urn:xmpp:time to jabber server: id=%s, err=%w",
|
||||||
id,
|
id,
|
||||||
@@ -301,17 +259,10 @@ func parseEvent(e interface{}) { //nolint:maintidx,gocognit,gocyclo
|
|||||||
case xmpp.XMPPNS_PUBSUB:
|
case xmpp.XMPPNS_PUBSUB:
|
||||||
log.Infof("Got IQ get pubsub request from %s, answer feature unimplemented", v.From)
|
log.Infof("Got IQ get pubsub request from %s, answer feature unimplemented", v.From)
|
||||||
|
|
||||||
answer := "<error type=\"cancel\">"
|
if id, err := talk.ErrorNotImplemented(
|
||||||
answer += "<feature-not-implemented xmlns=\"urn:ietf:params:xml:ns:xmpp-stanzas\" />"
|
v,
|
||||||
answer += "<unsupported xmlns=\"http://jabber.org/protocol/pubsub#errors\" feature=\"subscribe\" />"
|
"http://jabber.org/protocol/pubsub#errors",
|
||||||
answer += "</error>"
|
"subscribe",
|
||||||
|
|
||||||
if id, err := talk.RawInformation(
|
|
||||||
v.To,
|
|
||||||
v.From,
|
|
||||||
v.ID,
|
|
||||||
xmpp.IQTypeError,
|
|
||||||
answer,
|
|
||||||
); err != nil {
|
); err != nil {
|
||||||
err := fmt.Errorf("unable to send pubsub feature unimplemented to jabber server: id=%s, err=%w",
|
err := fmt.Errorf("unable to send pubsub feature unimplemented to jabber server: id=%s, err=%w",
|
||||||
id,
|
id,
|
||||||
@@ -344,13 +295,7 @@ func parseEvent(e interface{}) { //nolint:maintidx,gocognit,gocyclo
|
|||||||
if err := xml.Unmarshal(v.Query, &iqStruct); err == nil {
|
if err := xml.Unmarshal(v.Query, &iqStruct); err == nil {
|
||||||
log.Debugf("Got IQ get request (actually, response) for MUC Self-Ping from %s", v.From)
|
log.Debugf("Got IQ get request (actually, response) for MUC Self-Ping from %s", v.From)
|
||||||
|
|
||||||
if id, err := talk.RawInformation(
|
if id, err := talk.PingResponse(v); err != nil {
|
||||||
v.To,
|
|
||||||
v.From,
|
|
||||||
v.ID,
|
|
||||||
xmpp.IQTypeResult,
|
|
||||||
"",
|
|
||||||
); err != nil {
|
|
||||||
err := fmt.Errorf(
|
err := fmt.Errorf(
|
||||||
"unable to send pong to jabber server: id=%s, err=%w",
|
"unable to send pong to jabber server: id=%s, err=%w",
|
||||||
id,
|
id,
|
||||||
@@ -427,17 +372,10 @@ func parseEvent(e interface{}) { //nolint:maintidx,gocognit,gocyclo
|
|||||||
|
|
||||||
log.Info("Got an IQ request for set something. Answer not implemented")
|
log.Info("Got an IQ request for set something. Answer not implemented")
|
||||||
|
|
||||||
answer := "<error type=\"cancel\">"
|
if id, err := talk.ErrorNotImplemented(
|
||||||
answer += "<feature-not-implemented xmlns=\"urn:ietf:params:xml:ns:xmpp-stanzas\" />"
|
v,
|
||||||
answer += "<unsupported xmlns=\"http://jabber.org/protocol/commands\" feature=\"set\" />"
|
"http://jabber.org/protocol/commands",
|
||||||
answer += "</error>"
|
xmpp.IQTypeSet,
|
||||||
|
|
||||||
if id, err := talk.RawInformation(
|
|
||||||
v.To,
|
|
||||||
v.From,
|
|
||||||
v.ID,
|
|
||||||
xmpp.IQTypeError,
|
|
||||||
answer,
|
|
||||||
); err != nil {
|
); err != nil {
|
||||||
err := fmt.Errorf(
|
err := fmt.Errorf(
|
||||||
"unable to send set feature unimplemented to jabber server: id=%s, err=%w",
|
"unable to send set feature unimplemented to jabber server: id=%s, err=%w",
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ var serverPingTimestampTx int64
|
|||||||
// Время, когда был принят s2c pong.
|
// Время, когда был принят s2c pong.
|
||||||
var serverPingTimestampRx int64
|
var serverPingTimestampRx int64
|
||||||
|
|
||||||
// Объектик для хранения стейта утилизатора горутинок
|
// Объектик для хранения стейта утилизатора горутинок.
|
||||||
var gTomb tomb.Tomb
|
var gTomb tomb.Tomb
|
||||||
|
|
||||||
/* vim: set ft=go noet ai ts=4 sw=4 sts=4: */
|
/* vim: set ft=go noet ai ts=4 sw=4 sts=4: */
|
||||||
|
|||||||
8
go.mod
8
go.mod
@@ -4,14 +4,14 @@ go 1.20
|
|||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/davecgh/go-spew v1.1.1
|
github.com/davecgh/go-spew v1.1.1
|
||||||
github.com/eleksir/go-xmpp v1.4.0
|
github.com/eleksir/go-xmpp v1.5.0
|
||||||
github.com/hjson/hjson-go v3.3.0+incompatible
|
github.com/hjson/hjson-go v3.3.0+incompatible
|
||||||
github.com/sirupsen/logrus v1.9.3
|
github.com/sirupsen/logrus v1.9.3
|
||||||
golang.org/x/exp v0.0.0-20230728194245-b0cb94b80691
|
golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63
|
||||||
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7
|
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7
|
||||||
)
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
golang.org/x/crypto v0.11.0 // indirect
|
golang.org/x/crypto v0.12.0 // indirect
|
||||||
golang.org/x/sys v0.10.0 // indirect
|
golang.org/x/sys v0.11.0 // indirect
|
||||||
)
|
)
|
||||||
|
|||||||
16
go.sum
16
go.sum
@@ -1,8 +1,8 @@
|
|||||||
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 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/eleksir/go-xmpp v1.4.0 h1:CJ91zeoLoV0FqhhcvZnkBjeuaXWbWgRTJ/HrzKugM4s=
|
github.com/eleksir/go-xmpp v1.5.0 h1:kAjpCxuqWiu9LdlCTkQzvczotHONpojwp/mpI4aBVmQ=
|
||||||
github.com/eleksir/go-xmpp v1.4.0/go.mod h1:KnvbXvUpttEVFl8l5eDO2Q7J97ZxtTMvOsDWULD2Rn8=
|
github.com/eleksir/go-xmpp v1.5.0/go.mod h1:KnvbXvUpttEVFl8l5eDO2Q7J97ZxtTMvOsDWULD2Rn8=
|
||||||
github.com/hjson/hjson-go v3.3.0+incompatible h1:Rqr+Ya+0aCJMjaE4s8E9YKvuJLuLVpEvz4ONum52vnI=
|
github.com/hjson/hjson-go v3.3.0+incompatible h1:Rqr+Ya+0aCJMjaE4s8E9YKvuJLuLVpEvz4ONum52vnI=
|
||||||
github.com/hjson/hjson-go v3.3.0+incompatible/go.mod h1:qsetwF8NlsTsOTwZTApNlTCerV+b2GjYRRcIk4JMFio=
|
github.com/hjson/hjson-go v3.3.0+incompatible/go.mod h1:qsetwF8NlsTsOTwZTApNlTCerV+b2GjYRRcIk4JMFio=
|
||||||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
||||||
@@ -12,13 +12,13 @@ github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVs
|
|||||||
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.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
|
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=
|
||||||
golang.org/x/crypto v0.11.0 h1:6Ewdq3tDic1mg5xRO4milcWCfMVQhI4NkqWWvqejpuA=
|
golang.org/x/crypto v0.12.0 h1:tFM/ta59kqch6LlvYnPa0yx5a83cL2nHflFhYKvv9Yk=
|
||||||
golang.org/x/crypto v0.11.0/go.mod h1:xgJhtzW8F9jGdVFWZESrid1U1bjeNy4zgy5cRr/CIio=
|
golang.org/x/crypto v0.12.0/go.mod h1:NF0Gs7EO5K4qLn+Ylc+fih8BSTeIjAP05siRnAh98yw=
|
||||||
golang.org/x/exp v0.0.0-20230728194245-b0cb94b80691 h1:/yRP+0AN7mf5DkD3BAI6TOFnd51gEoDEb8o35jIFtgw=
|
golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63 h1:m64FZMko/V45gv0bNmrNYoDEq8U5YUhetc9cBWKS1TQ=
|
||||||
golang.org/x/exp v0.0.0-20230728194245-b0cb94b80691/go.mod h1:FXUEEKJgO7OQYeo8N01OfiKP8RXMtf6e8aTskBGqWdc=
|
golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63/go.mod h1:0v4NqG35kSWCMzLaMeX+IQrlSnVE/bqGSyC2cz/9Le8=
|
||||||
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/sys v0.10.0 h1:SqMFp9UcQJZa+pmYuAKjd9xq1f0j5rLcDIk0mj4qAsA=
|
golang.org/x/sys v0.11.0 h1:eG7RXZHdqOJ1i+0lgLgCpSXAp6M3LYlAo6osgSi0xOM=
|
||||||
golang.org/x/sys v0.10.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||||
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=
|
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=
|
||||||
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
|
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
|
||||||
|
|||||||
2
lib.go
2
lib.go
@@ -580,8 +580,6 @@ func joinMuc(room string) {
|
|||||||
log.Infof("Joined to MUC: %s", room)
|
log.Infof("Joined to MUC: %s", room)
|
||||||
|
|
||||||
go RotateStatus(room)
|
go RotateStatus(room)
|
||||||
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// probeServerLiveness проверяет живость соединения с сервером. Для многих серверов обязательная штука, без которой
|
// probeServerLiveness проверяет живость соединения с сервером. Для многих серверов обязательная штука, без которой
|
||||||
|
|||||||
57
vendor/github.com/eleksir/go-xmpp/xmpp_error.go
generated
vendored
Normal file
57
vendor/github.com/eleksir/go-xmpp/xmpp_error.go
generated
vendored
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
package xmpp
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
)
|
||||||
|
|
||||||
|
// ErrorServiceUnavailable implements error response about feature that is not available. Currently implemented for
|
||||||
|
// xep-0030.
|
||||||
|
// QueryXmlns is about incoming xmlns attribute in query tag.
|
||||||
|
// Node is about incoming node attribute in query tag (looks like it used only in disco#commands).
|
||||||
|
//
|
||||||
|
// If queried feature is not here on purpose, standards suggest answer with this stanza.
|
||||||
|
func (c *Client) ErrorServiceUnavailable(v IQ, queryXmlns, node string) (string, error) {
|
||||||
|
query := fmt.Sprintf("<query xmlns=\"%s\" ", queryXmlns)
|
||||||
|
|
||||||
|
if node != "" {
|
||||||
|
query += fmt.Sprintf("node=\"%s\" />", node)
|
||||||
|
} else {
|
||||||
|
query += "/>"
|
||||||
|
}
|
||||||
|
|
||||||
|
query += "<error type=\"cancel\">"
|
||||||
|
query += "<service-unavailable xmlns=\"urn:ietf:params:xml:ns:xmpp-stanzas\" />"
|
||||||
|
query += "</error>"
|
||||||
|
|
||||||
|
return c.RawInformation(
|
||||||
|
v.To,
|
||||||
|
v.From,
|
||||||
|
v.ID,
|
||||||
|
IQTypeError,
|
||||||
|
query,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
// ErrorNotImplemented implements error response about feature that is not (yet?) implemented.
|
||||||
|
// Xmlns is about not implemented feature.
|
||||||
|
//
|
||||||
|
// If queried feature is not here because of it under development or for similar reasons, standards suggest answer with
|
||||||
|
// this stanza.
|
||||||
|
func (c *Client) ErrorNotImplemented(v IQ, xmlns, feature string) (string, error) {
|
||||||
|
query := "<error type=\"cancel\">"
|
||||||
|
query += "<feature-not-implemented xmlns=\"urn:ietf:params:xml:ns:xmpp-stanzas\" />"
|
||||||
|
query += fmt.Sprintf(
|
||||||
|
"<unsupported xmlns=\"%s\" feature=\"%s\" />",
|
||||||
|
xmlns,
|
||||||
|
feature,
|
||||||
|
)
|
||||||
|
query += "</error>"
|
||||||
|
|
||||||
|
return c.RawInformation(
|
||||||
|
v.To,
|
||||||
|
v.From,
|
||||||
|
v.ID,
|
||||||
|
IQTypeError,
|
||||||
|
query,
|
||||||
|
)
|
||||||
|
}
|
||||||
75
vendor/github.com/eleksir/go-xmpp/xmpp_information_query.go
generated
vendored
75
vendor/github.com/eleksir/go-xmpp/xmpp_information_query.go
generated
vendored
@@ -3,6 +3,7 @@ package xmpp
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
const IQTypeGet = "get"
|
const IQTypeGet = "get"
|
||||||
@@ -16,24 +17,24 @@ func (c *Client) Discovery() (string, error) {
|
|||||||
return c.RawInformationQuery(c.jid, c.domain, reqID, IQTypeGet, XMPPNS_DISCO_ITEMS, "")
|
return c.RawInformationQuery(c.jid, c.domain, reqID, IQTypeGet, XMPPNS_DISCO_ITEMS, "")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Discover information about a node. Empty node queries info about server itself.
|
// DiscoverNodeInfo discovers information about a node. Empty node queries info about server itself.
|
||||||
func (c *Client) DiscoverNodeInfo(node string) (string, error) {
|
func (c *Client) DiscoverNodeInfo(node string) (string, error) {
|
||||||
query := fmt.Sprintf("<query xmlns='%s' node='%s'/>", XMPPNS_DISCO_INFO, node)
|
query := fmt.Sprintf("<query xmlns='%s' node='%s'/>", XMPPNS_DISCO_INFO, node)
|
||||||
return c.RawInformation(c.jid, c.domain, "info3", IQTypeGet, query)
|
return c.RawInformation(c.jid, c.domain, "info3", IQTypeGet, query)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Discover information about given item from given jid.
|
// DiscoverInfo discovers information about given item from given jid.
|
||||||
func (c *Client) DiscoverInfo(from string, to string) (string, error) {
|
func (c *Client) DiscoverInfo(from string, to string) (string, error) {
|
||||||
query := fmt.Sprintf("<query xmlns='%s'/>", XMPPNS_DISCO_INFO)
|
query := fmt.Sprintf("<query xmlns='%s'/>", XMPPNS_DISCO_INFO)
|
||||||
return c.RawInformation(from, to, "info3", IQTypeGet, query)
|
return c.RawInformation(from, to, "info3", IQTypeGet, query)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Discover items that the server exposes
|
// DiscoverServerItems discover items that the server exposes
|
||||||
func (c *Client) DiscoverServerItems() (string, error) {
|
func (c *Client) DiscoverServerItems() (string, error) {
|
||||||
return c.DiscoverEntityItems(c.domain)
|
return c.DiscoverEntityItems(c.domain)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Discover items that an entity exposes
|
// DiscoverEntityItems discovers items that an entity exposes.
|
||||||
func (c *Client) DiscoverEntityItems(jid string) (string, error) {
|
func (c *Client) DiscoverEntityItems(jid string) (string, error) {
|
||||||
query := fmt.Sprintf("<query xmlns='%s'/>", XMPPNS_DISCO_ITEMS)
|
query := fmt.Sprintf("<query xmlns='%s'/>", XMPPNS_DISCO_ITEMS)
|
||||||
return c.RawInformation(c.jid, jid, "info1", IQTypeGet, query)
|
return c.RawInformation(c.jid, jid, "info1", IQTypeGet, query)
|
||||||
@@ -46,9 +47,73 @@ func (c *Client) RawInformationQuery(from, to, id, iqType, requestNamespace, bod
|
|||||||
return id, err
|
return id, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// rawInformation send a IQ request with the payload body to the server
|
// RawInformation sends a IQ request with the payload body to the server.
|
||||||
func (c *Client) RawInformation(from, to, id, iqType, body string) (string, error) {
|
func (c *Client) RawInformation(from, to, id, iqType, body string) (string, error) {
|
||||||
const xmlIQ = "<iq from='%s' to='%s' id='%s' type='%s'>%s</iq>"
|
const xmlIQ = "<iq from='%s' to='%s' id='%s' type='%s'>%s</iq>"
|
||||||
_, err := fmt.Fprintf(StanzaWriter, xmlIQ, xmlEscape(from), xmlEscape(to), id, iqType, body)
|
_, err := fmt.Fprintf(StanzaWriter, xmlIQ, xmlEscape(from), xmlEscape(to), id, iqType, body)
|
||||||
return id, err
|
return id, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// IqVersionResponse responding with software version, according to xep-0092.
|
||||||
|
func (c *Client) IqVersionResponse(v IQ, name, version, os string) (string, error) {
|
||||||
|
if name == "" {
|
||||||
|
name = "go-xmpp"
|
||||||
|
}
|
||||||
|
|
||||||
|
if version == "" {
|
||||||
|
version = "undefined"
|
||||||
|
}
|
||||||
|
|
||||||
|
query := "<query xmlns=\"jabber:iq:version\">" //nolint:wsl
|
||||||
|
query += fmt.Sprintf("<name>%s</name>", name)
|
||||||
|
query += fmt.Sprintf("<version>%s</version>", version)
|
||||||
|
|
||||||
|
if os != "" {
|
||||||
|
query += fmt.Sprintf("<os>%s</os>", os)
|
||||||
|
}
|
||||||
|
|
||||||
|
query += "</query>"
|
||||||
|
|
||||||
|
return c.RawInformation(
|
||||||
|
v.To,
|
||||||
|
v.From,
|
||||||
|
v.ID,
|
||||||
|
IQTypeResult,
|
||||||
|
query,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
// JabberIqLastResponse responding with relative time since last activity.
|
||||||
|
// Here lastActivity is unix time stamp when last activity took place since.
|
||||||
|
func (c *Client) JabberIqLastResponse(v IQ, lastActivity int64) (string, error) {
|
||||||
|
query := fmt.Sprintf(
|
||||||
|
"<query xmlns=\"jabber:iq:last\" seconds=\"%d\" />",
|
||||||
|
time.Now().Unix()-lastActivity,
|
||||||
|
)
|
||||||
|
|
||||||
|
return c.RawInformation(
|
||||||
|
v.To,
|
||||||
|
v.From,
|
||||||
|
v.ID,
|
||||||
|
IQTypeResult,
|
||||||
|
query,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
// UrnXmppTimeResponse implements response to query entity's current time (xep-0202).
|
||||||
|
// TimezoneOffset have format +HH:MM or -HH:MM
|
||||||
|
func (c *Client) UrnXmppTimeResponse(v IQ, timezoneOffset string) (string, error) {
|
||||||
|
query := fmt.Sprintf(
|
||||||
|
"<time xmlns=\"urn:xmpp:time\"><tzo>%s</tzo><utc>%s</utc></time>",
|
||||||
|
timezoneOffset,
|
||||||
|
time.Now().UTC().Format(time.RFC3339),
|
||||||
|
)
|
||||||
|
|
||||||
|
return c.RawInformation(
|
||||||
|
v.To,
|
||||||
|
v.From,
|
||||||
|
v.ID,
|
||||||
|
IQTypeResult,
|
||||||
|
query,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|||||||
11
vendor/github.com/eleksir/go-xmpp/xmpp_ping.go
generated
vendored
11
vendor/github.com/eleksir/go-xmpp/xmpp_ping.go
generated
vendored
@@ -31,3 +31,14 @@ func (c *Client) SendResultPing(id, toServer string) error {
|
|||||||
xmlEscape(toServer), xmlEscape(id))
|
xmlEscape(toServer), xmlEscape(id))
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// PingResponse responding to ping query according to xep-0199
|
||||||
|
func (c *Client) PingResponse(v IQ) (string, error) {
|
||||||
|
return c.RawInformation(
|
||||||
|
v.To,
|
||||||
|
v.From,
|
||||||
|
v.ID,
|
||||||
|
IQTypeResult,
|
||||||
|
"",
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|||||||
16
vendor/github.com/eleksir/go-xmpp/xmpp_pubsub.go
generated
vendored
16
vendor/github.com/eleksir/go-xmpp/xmpp_pubsub.go
generated
vendored
@@ -106,28 +106,28 @@ func pubsubUnsubscriptionStanza(node, jid string) string {
|
|||||||
return pubsubStanza(body)
|
return pubsubStanza(body)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Client) PubsubSubscribeNode(node, jid string) {
|
func (c *Client) PubsubSubscribeNode(node, jid string) (string, error) {
|
||||||
c.RawInformation(c.jid,
|
return c.RawInformation(c.jid,
|
||||||
jid,
|
jid,
|
||||||
"sub1",
|
"sub1",
|
||||||
"set",
|
"set",
|
||||||
pubsubSubscriptionStanza(node, c.jid))
|
pubsubSubscriptionStanza(node, c.jid))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Client) PubsubUnsubscribeNode(node, jid string) {
|
func (c *Client) PubsubUnsubscribeNode(node, jid string) (string, error) {
|
||||||
c.RawInformation(c.jid,
|
return c.RawInformation(c.jid,
|
||||||
jid,
|
jid,
|
||||||
"unsub1",
|
"unsub1",
|
||||||
"set",
|
"set",
|
||||||
pubsubUnsubscriptionStanza(node, c.jid))
|
pubsubUnsubscriptionStanza(node, c.jid))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Client) PubsubRequestLastItems(node, jid string) {
|
func (c *Client) PubsubRequestLastItems(node, jid string) (string, error) {
|
||||||
body := fmt.Sprintf("<items node='%s'/>", node)
|
body := fmt.Sprintf("<items node='%s'/>", node)
|
||||||
c.RawInformation(c.jid, jid, "items1", "get", pubsubStanza(body))
|
return c.RawInformation(c.jid, jid, "items1", "get", pubsubStanza(body))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Client) PubsubRequestItem(node, jid, id string) {
|
func (c *Client) PubsubRequestItem(node, jid, id string) (string, error) {
|
||||||
body := fmt.Sprintf("<items node='%s'><item id='%s'/></items>", node, id)
|
body := fmt.Sprintf("<items node='%s'><item id='%s'/></items>", node, id)
|
||||||
c.RawInformation(c.jid, jid, "items3", "get", pubsubStanza(body))
|
return c.RawInformation(c.jid, jid, "items3", "get", pubsubStanza(body))
|
||||||
}
|
}
|
||||||
|
|||||||
2
vendor/golang.org/x/sys/unix/mkerrors.sh
generated
vendored
2
vendor/golang.org/x/sys/unix/mkerrors.sh
generated
vendored
@@ -624,7 +624,7 @@ ccflags="$@"
|
|||||||
$2 ~ /^MEM/ ||
|
$2 ~ /^MEM/ ||
|
||||||
$2 ~ /^WG/ ||
|
$2 ~ /^WG/ ||
|
||||||
$2 ~ /^FIB_RULE_/ ||
|
$2 ~ /^FIB_RULE_/ ||
|
||||||
$2 ~ /^BLK[A-Z]*(GET$|SET$|BUF$|PART$|SIZE)/ {printf("\t%s = C.%s\n", $2, $2)}
|
$2 ~ /^BLK[A-Z]*(GET$|SET$|BUF$|PART$|SIZE|IOMIN$|IOOPT$|ALIGNOFF$|DISCARD|ROTATIONAL$|ZEROOUT$|GETDISKSEQ$)/ {printf("\t%s = C.%s\n", $2, $2)}
|
||||||
$2 ~ /^__WCOREFLAG$/ {next}
|
$2 ~ /^__WCOREFLAG$/ {next}
|
||||||
$2 ~ /^__W[A-Z0-9]+$/ {printf("\t%s = C.%s\n", substr($2,3), $2)}
|
$2 ~ /^__W[A-Z0-9]+$/ {printf("\t%s = C.%s\n", substr($2,3), $2)}
|
||||||
|
|
||||||
|
|||||||
14
vendor/golang.org/x/sys/unix/mmap_nomremap.go
generated
vendored
Normal file
14
vendor/golang.org/x/sys/unix/mmap_nomremap.go
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
// Copyright 2023 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build aix || darwin || dragonfly || freebsd || openbsd || solaris
|
||||||
|
// +build aix darwin dragonfly freebsd openbsd solaris
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
var mapper = &mmapper{
|
||||||
|
active: make(map[*byte][]byte),
|
||||||
|
mmap: mmap,
|
||||||
|
munmap: munmap,
|
||||||
|
}
|
||||||
21
vendor/golang.org/x/sys/unix/mremap.go
generated
vendored
21
vendor/golang.org/x/sys/unix/mremap.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 linux
|
//go:build linux || netbsd
|
||||||
// +build linux
|
// +build linux netbsd
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
@@ -14,8 +14,17 @@ type mremapMmapper struct {
|
|||||||
mremap func(oldaddr uintptr, oldlength uintptr, newlength uintptr, flags int, newaddr uintptr) (xaddr uintptr, err error)
|
mremap func(oldaddr uintptr, oldlength uintptr, newlength uintptr, flags int, newaddr uintptr) (xaddr uintptr, err error)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var mapper = &mremapMmapper{
|
||||||
|
mmapper: mmapper{
|
||||||
|
active: make(map[*byte][]byte),
|
||||||
|
mmap: mmap,
|
||||||
|
munmap: munmap,
|
||||||
|
},
|
||||||
|
mremap: mremap,
|
||||||
|
}
|
||||||
|
|
||||||
func (m *mremapMmapper) Mremap(oldData []byte, newLength int, flags int) (data []byte, err error) {
|
func (m *mremapMmapper) Mremap(oldData []byte, newLength int, flags int) (data []byte, err error) {
|
||||||
if newLength <= 0 || len(oldData) == 0 || len(oldData) != cap(oldData) || flags&MREMAP_FIXED != 0 {
|
if newLength <= 0 || len(oldData) == 0 || len(oldData) != cap(oldData) || flags&mremapFixed != 0 {
|
||||||
return nil, EINVAL
|
return nil, EINVAL
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -32,9 +41,13 @@ func (m *mremapMmapper) Mremap(oldData []byte, newLength int, flags int) (data [
|
|||||||
}
|
}
|
||||||
bNew := unsafe.Slice((*byte)(unsafe.Pointer(newAddr)), newLength)
|
bNew := unsafe.Slice((*byte)(unsafe.Pointer(newAddr)), newLength)
|
||||||
pNew := &bNew[cap(bNew)-1]
|
pNew := &bNew[cap(bNew)-1]
|
||||||
if flags&MREMAP_DONTUNMAP == 0 {
|
if flags&mremapDontunmap == 0 {
|
||||||
delete(m.active, pOld)
|
delete(m.active, pOld)
|
||||||
}
|
}
|
||||||
m.active[pNew] = bNew
|
m.active[pNew] = bNew
|
||||||
return bNew, nil
|
return bNew, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Mremap(oldData []byte, newLength int, flags int) (data []byte, err error) {
|
||||||
|
return mapper.Mremap(oldData, newLength, flags)
|
||||||
|
}
|
||||||
|
|||||||
15
vendor/golang.org/x/sys/unix/syscall_aix.go
generated
vendored
15
vendor/golang.org/x/sys/unix/syscall_aix.go
generated
vendored
@@ -535,21 +535,6 @@ func Fsync(fd int) error {
|
|||||||
//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error) = nsendmsg
|
//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error) = nsendmsg
|
||||||
|
|
||||||
//sys munmap(addr uintptr, length uintptr) (err error)
|
//sys munmap(addr uintptr, length uintptr) (err error)
|
||||||
|
|
||||||
var mapper = &mmapper{
|
|
||||||
active: make(map[*byte][]byte),
|
|
||||||
mmap: mmap,
|
|
||||||
munmap: munmap,
|
|
||||||
}
|
|
||||||
|
|
||||||
func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) {
|
|
||||||
return mapper.Mmap(fd, offset, length, prot, flags)
|
|
||||||
}
|
|
||||||
|
|
||||||
func Munmap(b []byte) (err error) {
|
|
||||||
return mapper.Munmap(b)
|
|
||||||
}
|
|
||||||
|
|
||||||
//sys Madvise(b []byte, advice int) (err error)
|
//sys Madvise(b []byte, advice int) (err error)
|
||||||
//sys Mprotect(b []byte, prot int) (err error)
|
//sys Mprotect(b []byte, prot int) (err error)
|
||||||
//sys Mlock(b []byte) (err error)
|
//sys Mlock(b []byte) (err error)
|
||||||
|
|||||||
14
vendor/golang.org/x/sys/unix/syscall_bsd.go
generated
vendored
14
vendor/golang.org/x/sys/unix/syscall_bsd.go
generated
vendored
@@ -601,20 +601,6 @@ func Poll(fds []PollFd, timeout int) (n int, err error) {
|
|||||||
// Gethostuuid(uuid *byte, timeout *Timespec) (err error)
|
// Gethostuuid(uuid *byte, timeout *Timespec) (err error)
|
||||||
// Ptrace(req int, pid int, addr uintptr, data int) (ret uintptr, err error)
|
// Ptrace(req int, pid int, addr uintptr, data int) (ret uintptr, err error)
|
||||||
|
|
||||||
var mapper = &mmapper{
|
|
||||||
active: make(map[*byte][]byte),
|
|
||||||
mmap: mmap,
|
|
||||||
munmap: munmap,
|
|
||||||
}
|
|
||||||
|
|
||||||
func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) {
|
|
||||||
return mapper.Mmap(fd, offset, length, prot, flags)
|
|
||||||
}
|
|
||||||
|
|
||||||
func Munmap(b []byte) (err error) {
|
|
||||||
return mapper.Munmap(b)
|
|
||||||
}
|
|
||||||
|
|
||||||
//sys Madvise(b []byte, behav int) (err error)
|
//sys Madvise(b []byte, behav int) (err error)
|
||||||
//sys Mlock(b []byte) (err error)
|
//sys Mlock(b []byte) (err error)
|
||||||
//sys Mlockall(flags int) (err error)
|
//sys Mlockall(flags int) (err error)
|
||||||
|
|||||||
50
vendor/golang.org/x/sys/unix/syscall_darwin.go
generated
vendored
50
vendor/golang.org/x/sys/unix/syscall_darwin.go
generated
vendored
@@ -510,30 +510,36 @@ func SysctlKinfoProcSlice(name string, args ...int) ([]KinfoProc, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Find size.
|
for {
|
||||||
n := uintptr(0)
|
// Find size.
|
||||||
if err := sysctl(mib, nil, &n, nil, 0); err != nil {
|
n := uintptr(0)
|
||||||
return nil, err
|
if err := sysctl(mib, nil, &n, nil, 0); err != nil {
|
||||||
}
|
return nil, err
|
||||||
if n == 0 {
|
}
|
||||||
return nil, nil
|
if n == 0 {
|
||||||
}
|
return nil, nil
|
||||||
if n%SizeofKinfoProc != 0 {
|
}
|
||||||
return nil, fmt.Errorf("sysctl() returned a size of %d, which is not a multiple of %d", n, SizeofKinfoProc)
|
if n%SizeofKinfoProc != 0 {
|
||||||
}
|
return nil, fmt.Errorf("sysctl() returned a size of %d, which is not a multiple of %d", n, SizeofKinfoProc)
|
||||||
|
}
|
||||||
|
|
||||||
// Read into buffer of that size.
|
// Read into buffer of that size.
|
||||||
buf := make([]KinfoProc, n/SizeofKinfoProc)
|
buf := make([]KinfoProc, n/SizeofKinfoProc)
|
||||||
if err := sysctl(mib, (*byte)(unsafe.Pointer(&buf[0])), &n, nil, 0); err != nil {
|
if err := sysctl(mib, (*byte)(unsafe.Pointer(&buf[0])), &n, nil, 0); err != nil {
|
||||||
return nil, err
|
if err == ENOMEM {
|
||||||
}
|
// Process table grew. Try again.
|
||||||
if n%SizeofKinfoProc != 0 {
|
continue
|
||||||
return nil, fmt.Errorf("sysctl() returned a size of %d, which is not a multiple of %d", n, SizeofKinfoProc)
|
}
|
||||||
}
|
return nil, err
|
||||||
|
}
|
||||||
|
if n%SizeofKinfoProc != 0 {
|
||||||
|
return nil, fmt.Errorf("sysctl() returned a size of %d, which is not a multiple of %d", n, SizeofKinfoProc)
|
||||||
|
}
|
||||||
|
|
||||||
// The actual call may return less than the original reported required
|
// The actual call may return less than the original reported required
|
||||||
// size so ensure we deal with that.
|
// size so ensure we deal with that.
|
||||||
return buf[:n/SizeofKinfoProc], nil
|
return buf[:n/SizeofKinfoProc], nil
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//sys sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error)
|
//sys sendfile(infd int, outfd int, offset int64, len *int64, hdtr unsafe.Pointer, flags int) (err error)
|
||||||
|
|||||||
63
vendor/golang.org/x/sys/unix/syscall_linux.go
generated
vendored
63
vendor/golang.org/x/sys/unix/syscall_linux.go
generated
vendored
@@ -1885,7 +1885,7 @@ func Getpgrp() (pid int) {
|
|||||||
//sys PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error)
|
//sys PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error)
|
||||||
//sys PivotRoot(newroot string, putold string) (err error) = SYS_PIVOT_ROOT
|
//sys PivotRoot(newroot string, putold string) (err error) = SYS_PIVOT_ROOT
|
||||||
//sys Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error)
|
//sys Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error)
|
||||||
//sys Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) = SYS_PSELECT6
|
//sys pselect6(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *sigset_argpack) (n int, err error)
|
||||||
//sys read(fd int, p []byte) (n int, err error)
|
//sys read(fd int, p []byte) (n int, err error)
|
||||||
//sys Removexattr(path string, attr string) (err error)
|
//sys Removexattr(path string, attr string) (err error)
|
||||||
//sys Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error)
|
//sys Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) (err error)
|
||||||
@@ -2125,28 +2125,6 @@ func writevRacedetect(iovecs []Iovec, n int) {
|
|||||||
// mmap varies by architecture; see syscall_linux_*.go.
|
// mmap varies by architecture; see syscall_linux_*.go.
|
||||||
//sys munmap(addr uintptr, length uintptr) (err error)
|
//sys munmap(addr uintptr, length uintptr) (err error)
|
||||||
//sys mremap(oldaddr uintptr, oldlength uintptr, newlength uintptr, flags int, newaddr uintptr) (xaddr uintptr, err error)
|
//sys mremap(oldaddr uintptr, oldlength uintptr, newlength uintptr, flags int, newaddr uintptr) (xaddr uintptr, err error)
|
||||||
|
|
||||||
var mapper = &mremapMmapper{
|
|
||||||
mmapper: mmapper{
|
|
||||||
active: make(map[*byte][]byte),
|
|
||||||
mmap: mmap,
|
|
||||||
munmap: munmap,
|
|
||||||
},
|
|
||||||
mremap: mremap,
|
|
||||||
}
|
|
||||||
|
|
||||||
func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) {
|
|
||||||
return mapper.Mmap(fd, offset, length, prot, flags)
|
|
||||||
}
|
|
||||||
|
|
||||||
func Munmap(b []byte) (err error) {
|
|
||||||
return mapper.Munmap(b)
|
|
||||||
}
|
|
||||||
|
|
||||||
func Mremap(oldData []byte, newLength int, flags int) (data []byte, err error) {
|
|
||||||
return mapper.Mremap(oldData, newLength, flags)
|
|
||||||
}
|
|
||||||
|
|
||||||
//sys Madvise(b []byte, advice int) (err error)
|
//sys Madvise(b []byte, advice int) (err error)
|
||||||
//sys Mprotect(b []byte, prot int) (err error)
|
//sys Mprotect(b []byte, prot int) (err error)
|
||||||
//sys Mlock(b []byte) (err error)
|
//sys Mlock(b []byte) (err error)
|
||||||
@@ -2155,6 +2133,12 @@ func Mremap(oldData []byte, newLength int, flags int) (data []byte, err error) {
|
|||||||
//sys Munlock(b []byte) (err error)
|
//sys Munlock(b []byte) (err error)
|
||||||
//sys Munlockall() (err error)
|
//sys Munlockall() (err error)
|
||||||
|
|
||||||
|
const (
|
||||||
|
mremapFixed = MREMAP_FIXED
|
||||||
|
mremapDontunmap = MREMAP_DONTUNMAP
|
||||||
|
mremapMaymove = MREMAP_MAYMOVE
|
||||||
|
)
|
||||||
|
|
||||||
// Vmsplice splices user pages from a slice of Iovecs into a pipe specified by fd,
|
// Vmsplice splices user pages from a slice of Iovecs into a pipe specified by fd,
|
||||||
// using the specified flags.
|
// using the specified flags.
|
||||||
func Vmsplice(fd int, iovs []Iovec, flags int) (int, error) {
|
func Vmsplice(fd int, iovs []Iovec, flags int) (int, error) {
|
||||||
@@ -2454,6 +2438,39 @@ func Getresgid() (rgid, egid, sgid int) {
|
|||||||
return int(r), int(e), int(s)
|
return int(r), int(e), int(s)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Pselect is a wrapper around the Linux pselect6 system call.
|
||||||
|
// This version does not modify the timeout argument.
|
||||||
|
func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
|
||||||
|
// Per https://man7.org/linux/man-pages/man2/select.2.html#NOTES,
|
||||||
|
// The Linux pselect6() system call modifies its timeout argument.
|
||||||
|
// [Not modifying the argument] is the behavior required by POSIX.1-2001.
|
||||||
|
var mutableTimeout *Timespec
|
||||||
|
if timeout != nil {
|
||||||
|
mutableTimeout = new(Timespec)
|
||||||
|
*mutableTimeout = *timeout
|
||||||
|
}
|
||||||
|
|
||||||
|
// The final argument of the pselect6() system call is not a
|
||||||
|
// sigset_t * pointer, but is instead a structure
|
||||||
|
var kernelMask *sigset_argpack
|
||||||
|
if sigmask != nil {
|
||||||
|
wordBits := 32 << (^uintptr(0) >> 63) // see math.intSize
|
||||||
|
|
||||||
|
// A sigset stores one bit per signal,
|
||||||
|
// offset by 1 (because signal 0 does not exist).
|
||||||
|
// So the number of words needed is ⌈__C_NSIG - 1 / wordBits⌉.
|
||||||
|
sigsetWords := (_C__NSIG - 1 + wordBits - 1) / (wordBits)
|
||||||
|
|
||||||
|
sigsetBytes := uintptr(sigsetWords * (wordBits / 8))
|
||||||
|
kernelMask = &sigset_argpack{
|
||||||
|
ss: sigmask,
|
||||||
|
ssLen: sigsetBytes,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return pselect6(nfd, r, w, e, mutableTimeout, kernelMask)
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Unimplemented
|
* Unimplemented
|
||||||
*/
|
*/
|
||||||
|
|||||||
2
vendor/golang.org/x/sys/unix/syscall_linux_amd64.go
generated
vendored
2
vendor/golang.org/x/sys/unix/syscall_linux_amd64.go
generated
vendored
@@ -40,7 +40,7 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
|
|||||||
if timeout != nil {
|
if timeout != nil {
|
||||||
ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000}
|
ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000}
|
||||||
}
|
}
|
||||||
return Pselect(nfd, r, w, e, ts, nil)
|
return pselect6(nfd, r, w, e, ts, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
//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)
|
||||||
|
|||||||
2
vendor/golang.org/x/sys/unix/syscall_linux_arm64.go
generated
vendored
2
vendor/golang.org/x/sys/unix/syscall_linux_arm64.go
generated
vendored
@@ -33,7 +33,7 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
|
|||||||
if timeout != nil {
|
if timeout != nil {
|
||||||
ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000}
|
ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000}
|
||||||
}
|
}
|
||||||
return Pselect(nfd, r, w, e, ts, nil)
|
return pselect6(nfd, r, w, e, ts, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
//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)
|
||||||
|
|||||||
2
vendor/golang.org/x/sys/unix/syscall_linux_loong64.go
generated
vendored
2
vendor/golang.org/x/sys/unix/syscall_linux_loong64.go
generated
vendored
@@ -28,7 +28,7 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
|
|||||||
if timeout != nil {
|
if timeout != nil {
|
||||||
ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000}
|
ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000}
|
||||||
}
|
}
|
||||||
return Pselect(nfd, r, w, e, ts, nil)
|
return pselect6(nfd, r, w, e, ts, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
//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)
|
||||||
|
|||||||
2
vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go
generated
vendored
2
vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go
generated
vendored
@@ -31,7 +31,7 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
|
|||||||
if timeout != nil {
|
if timeout != nil {
|
||||||
ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000}
|
ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000}
|
||||||
}
|
}
|
||||||
return Pselect(nfd, r, w, e, ts, nil)
|
return pselect6(nfd, r, w, e, ts, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
//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)
|
||||||
|
|||||||
13
vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go
generated
vendored
13
vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go
generated
vendored
@@ -32,7 +32,7 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
|
|||||||
if timeout != nil {
|
if timeout != nil {
|
||||||
ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000}
|
ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000}
|
||||||
}
|
}
|
||||||
return Pselect(nfd, r, w, e, ts, nil)
|
return pselect6(nfd, r, w, e, ts, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
//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)
|
||||||
@@ -177,3 +177,14 @@ func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error
|
|||||||
}
|
}
|
||||||
return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags)
|
return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//sys riscvHWProbe(pairs []RISCVHWProbePairs, cpuCount uintptr, cpus *CPUSet, flags uint) (err error)
|
||||||
|
|
||||||
|
func RISCVHWProbe(pairs []RISCVHWProbePairs, set *CPUSet, flags uint) (err error) {
|
||||||
|
var setSize uintptr
|
||||||
|
|
||||||
|
if set != nil {
|
||||||
|
setSize = uintptr(unsafe.Sizeof(*set))
|
||||||
|
}
|
||||||
|
return riscvHWProbe(pairs, setSize, set, flags)
|
||||||
|
}
|
||||||
|
|||||||
13
vendor/golang.org/x/sys/unix/syscall_netbsd.go
generated
vendored
13
vendor/golang.org/x/sys/unix/syscall_netbsd.go
generated
vendored
@@ -360,6 +360,18 @@ func Statvfs(path string, buf *Statvfs_t) (err error) {
|
|||||||
//sys writelen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_WRITE
|
//sys writelen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_WRITE
|
||||||
//sys utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error)
|
//sys utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error)
|
||||||
|
|
||||||
|
const (
|
||||||
|
mremapFixed = MAP_FIXED
|
||||||
|
mremapDontunmap = 0
|
||||||
|
mremapMaymove = 0
|
||||||
|
)
|
||||||
|
|
||||||
|
//sys mremapNetBSD(oldp uintptr, oldsize uintptr, newp uintptr, newsize uintptr, flags int) (xaddr uintptr, err error) = SYS_MREMAP
|
||||||
|
|
||||||
|
func mremap(oldaddr uintptr, oldlength uintptr, newlength uintptr, flags int, newaddr uintptr) (uintptr, error) {
|
||||||
|
return mremapNetBSD(oldaddr, oldlength, newaddr, newlength, flags)
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Unimplemented
|
* Unimplemented
|
||||||
*/
|
*/
|
||||||
@@ -564,7 +576,6 @@ func Statvfs(path string, buf *Statvfs_t) (err error) {
|
|||||||
// mq_timedreceive
|
// mq_timedreceive
|
||||||
// mq_timedsend
|
// mq_timedsend
|
||||||
// mq_unlink
|
// mq_unlink
|
||||||
// mremap
|
|
||||||
// msgget
|
// msgget
|
||||||
// msgrcv
|
// msgrcv
|
||||||
// msgsnd
|
// msgsnd
|
||||||
|
|||||||
14
vendor/golang.org/x/sys/unix/syscall_solaris.go
generated
vendored
14
vendor/golang.org/x/sys/unix/syscall_solaris.go
generated
vendored
@@ -716,20 +716,6 @@ func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
var mapper = &mmapper{
|
|
||||||
active: make(map[*byte][]byte),
|
|
||||||
mmap: mmap,
|
|
||||||
munmap: munmap,
|
|
||||||
}
|
|
||||||
|
|
||||||
func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) {
|
|
||||||
return mapper.Mmap(fd, offset, length, prot, flags)
|
|
||||||
}
|
|
||||||
|
|
||||||
func Munmap(b []byte) (err error) {
|
|
||||||
return mapper.Munmap(b)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Event Ports
|
// Event Ports
|
||||||
|
|
||||||
type fileObjCookie struct {
|
type fileObjCookie struct {
|
||||||
|
|||||||
8
vendor/golang.org/x/sys/unix/syscall_unix.go
generated
vendored
8
vendor/golang.org/x/sys/unix/syscall_unix.go
generated
vendored
@@ -147,6 +147,14 @@ func (m *mmapper) Munmap(data []byte) (err error) {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) {
|
||||||
|
return mapper.Mmap(fd, offset, length, prot, flags)
|
||||||
|
}
|
||||||
|
|
||||||
|
func Munmap(b []byte) (err error) {
|
||||||
|
return mapper.Munmap(b)
|
||||||
|
}
|
||||||
|
|
||||||
func Read(fd int, p []byte) (n int, err error) {
|
func Read(fd int, p []byte) (n int, err error) {
|
||||||
n, err = read(fd, p)
|
n, err = read(fd, p)
|
||||||
if raceenabled {
|
if raceenabled {
|
||||||
|
|||||||
14
vendor/golang.org/x/sys/unix/syscall_zos_s390x.go
generated
vendored
14
vendor/golang.org/x/sys/unix/syscall_zos_s390x.go
generated
vendored
@@ -285,25 +285,11 @@ func Close(fd int) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
var mapper = &mmapper{
|
|
||||||
active: make(map[*byte][]byte),
|
|
||||||
mmap: mmap,
|
|
||||||
munmap: munmap,
|
|
||||||
}
|
|
||||||
|
|
||||||
// Dummy function: there are no semantics for Madvise on z/OS
|
// Dummy function: there are no semantics for Madvise on z/OS
|
||||||
func Madvise(b []byte, advice int) (err error) {
|
func Madvise(b []byte, advice int) (err error) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) {
|
|
||||||
return mapper.Mmap(fd, offset, length, prot, flags)
|
|
||||||
}
|
|
||||||
|
|
||||||
func Munmap(b []byte) (err error) {
|
|
||||||
return mapper.Munmap(b)
|
|
||||||
}
|
|
||||||
|
|
||||||
//sys Gethostname(buf []byte) (err error) = SYS___GETHOSTNAME_A
|
//sys Gethostname(buf []byte) (err error) = SYS___GETHOSTNAME_A
|
||||||
//sysnb Getegid() (egid int)
|
//sysnb Getegid() (egid int)
|
||||||
//sysnb Geteuid() (uid int)
|
//sysnb Geteuid() (uid int)
|
||||||
|
|||||||
9
vendor/golang.org/x/sys/unix/zerrors_linux_386.go
generated
vendored
9
vendor/golang.org/x/sys/unix/zerrors_linux_386.go
generated
vendored
@@ -27,22 +27,31 @@ const (
|
|||||||
B57600 = 0x1001
|
B57600 = 0x1001
|
||||||
B576000 = 0x1006
|
B576000 = 0x1006
|
||||||
B921600 = 0x1007
|
B921600 = 0x1007
|
||||||
|
BLKALIGNOFF = 0x127a
|
||||||
BLKBSZGET = 0x80041270
|
BLKBSZGET = 0x80041270
|
||||||
BLKBSZSET = 0x40041271
|
BLKBSZSET = 0x40041271
|
||||||
|
BLKDISCARD = 0x1277
|
||||||
|
BLKDISCARDZEROES = 0x127c
|
||||||
BLKFLSBUF = 0x1261
|
BLKFLSBUF = 0x1261
|
||||||
BLKFRAGET = 0x1265
|
BLKFRAGET = 0x1265
|
||||||
BLKFRASET = 0x1264
|
BLKFRASET = 0x1264
|
||||||
|
BLKGETDISKSEQ = 0x80081280
|
||||||
BLKGETSIZE = 0x1260
|
BLKGETSIZE = 0x1260
|
||||||
BLKGETSIZE64 = 0x80041272
|
BLKGETSIZE64 = 0x80041272
|
||||||
|
BLKIOMIN = 0x1278
|
||||||
|
BLKIOOPT = 0x1279
|
||||||
BLKPBSZGET = 0x127b
|
BLKPBSZGET = 0x127b
|
||||||
BLKRAGET = 0x1263
|
BLKRAGET = 0x1263
|
||||||
BLKRASET = 0x1262
|
BLKRASET = 0x1262
|
||||||
BLKROGET = 0x125e
|
BLKROGET = 0x125e
|
||||||
BLKROSET = 0x125d
|
BLKROSET = 0x125d
|
||||||
|
BLKROTATIONAL = 0x127e
|
||||||
BLKRRPART = 0x125f
|
BLKRRPART = 0x125f
|
||||||
|
BLKSECDISCARD = 0x127d
|
||||||
BLKSECTGET = 0x1267
|
BLKSECTGET = 0x1267
|
||||||
BLKSECTSET = 0x1266
|
BLKSECTSET = 0x1266
|
||||||
BLKSSZGET = 0x1268
|
BLKSSZGET = 0x1268
|
||||||
|
BLKZEROOUT = 0x127f
|
||||||
BOTHER = 0x1000
|
BOTHER = 0x1000
|
||||||
BS1 = 0x2000
|
BS1 = 0x2000
|
||||||
BSDLY = 0x2000
|
BSDLY = 0x2000
|
||||||
|
|||||||
9
vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
generated
vendored
9
vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
generated
vendored
@@ -27,22 +27,31 @@ const (
|
|||||||
B57600 = 0x1001
|
B57600 = 0x1001
|
||||||
B576000 = 0x1006
|
B576000 = 0x1006
|
||||||
B921600 = 0x1007
|
B921600 = 0x1007
|
||||||
|
BLKALIGNOFF = 0x127a
|
||||||
BLKBSZGET = 0x80081270
|
BLKBSZGET = 0x80081270
|
||||||
BLKBSZSET = 0x40081271
|
BLKBSZSET = 0x40081271
|
||||||
|
BLKDISCARD = 0x1277
|
||||||
|
BLKDISCARDZEROES = 0x127c
|
||||||
BLKFLSBUF = 0x1261
|
BLKFLSBUF = 0x1261
|
||||||
BLKFRAGET = 0x1265
|
BLKFRAGET = 0x1265
|
||||||
BLKFRASET = 0x1264
|
BLKFRASET = 0x1264
|
||||||
|
BLKGETDISKSEQ = 0x80081280
|
||||||
BLKGETSIZE = 0x1260
|
BLKGETSIZE = 0x1260
|
||||||
BLKGETSIZE64 = 0x80081272
|
BLKGETSIZE64 = 0x80081272
|
||||||
|
BLKIOMIN = 0x1278
|
||||||
|
BLKIOOPT = 0x1279
|
||||||
BLKPBSZGET = 0x127b
|
BLKPBSZGET = 0x127b
|
||||||
BLKRAGET = 0x1263
|
BLKRAGET = 0x1263
|
||||||
BLKRASET = 0x1262
|
BLKRASET = 0x1262
|
||||||
BLKROGET = 0x125e
|
BLKROGET = 0x125e
|
||||||
BLKROSET = 0x125d
|
BLKROSET = 0x125d
|
||||||
|
BLKROTATIONAL = 0x127e
|
||||||
BLKRRPART = 0x125f
|
BLKRRPART = 0x125f
|
||||||
|
BLKSECDISCARD = 0x127d
|
||||||
BLKSECTGET = 0x1267
|
BLKSECTGET = 0x1267
|
||||||
BLKSECTSET = 0x1266
|
BLKSECTSET = 0x1266
|
||||||
BLKSSZGET = 0x1268
|
BLKSSZGET = 0x1268
|
||||||
|
BLKZEROOUT = 0x127f
|
||||||
BOTHER = 0x1000
|
BOTHER = 0x1000
|
||||||
BS1 = 0x2000
|
BS1 = 0x2000
|
||||||
BSDLY = 0x2000
|
BSDLY = 0x2000
|
||||||
|
|||||||
9
vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
generated
vendored
9
vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
generated
vendored
@@ -27,22 +27,31 @@ const (
|
|||||||
B57600 = 0x1001
|
B57600 = 0x1001
|
||||||
B576000 = 0x1006
|
B576000 = 0x1006
|
||||||
B921600 = 0x1007
|
B921600 = 0x1007
|
||||||
|
BLKALIGNOFF = 0x127a
|
||||||
BLKBSZGET = 0x80041270
|
BLKBSZGET = 0x80041270
|
||||||
BLKBSZSET = 0x40041271
|
BLKBSZSET = 0x40041271
|
||||||
|
BLKDISCARD = 0x1277
|
||||||
|
BLKDISCARDZEROES = 0x127c
|
||||||
BLKFLSBUF = 0x1261
|
BLKFLSBUF = 0x1261
|
||||||
BLKFRAGET = 0x1265
|
BLKFRAGET = 0x1265
|
||||||
BLKFRASET = 0x1264
|
BLKFRASET = 0x1264
|
||||||
|
BLKGETDISKSEQ = 0x80081280
|
||||||
BLKGETSIZE = 0x1260
|
BLKGETSIZE = 0x1260
|
||||||
BLKGETSIZE64 = 0x80041272
|
BLKGETSIZE64 = 0x80041272
|
||||||
|
BLKIOMIN = 0x1278
|
||||||
|
BLKIOOPT = 0x1279
|
||||||
BLKPBSZGET = 0x127b
|
BLKPBSZGET = 0x127b
|
||||||
BLKRAGET = 0x1263
|
BLKRAGET = 0x1263
|
||||||
BLKRASET = 0x1262
|
BLKRASET = 0x1262
|
||||||
BLKROGET = 0x125e
|
BLKROGET = 0x125e
|
||||||
BLKROSET = 0x125d
|
BLKROSET = 0x125d
|
||||||
|
BLKROTATIONAL = 0x127e
|
||||||
BLKRRPART = 0x125f
|
BLKRRPART = 0x125f
|
||||||
|
BLKSECDISCARD = 0x127d
|
||||||
BLKSECTGET = 0x1267
|
BLKSECTGET = 0x1267
|
||||||
BLKSECTSET = 0x1266
|
BLKSECTSET = 0x1266
|
||||||
BLKSSZGET = 0x1268
|
BLKSSZGET = 0x1268
|
||||||
|
BLKZEROOUT = 0x127f
|
||||||
BOTHER = 0x1000
|
BOTHER = 0x1000
|
||||||
BS1 = 0x2000
|
BS1 = 0x2000
|
||||||
BSDLY = 0x2000
|
BSDLY = 0x2000
|
||||||
|
|||||||
9
vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
generated
vendored
9
vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
generated
vendored
@@ -27,22 +27,31 @@ const (
|
|||||||
B57600 = 0x1001
|
B57600 = 0x1001
|
||||||
B576000 = 0x1006
|
B576000 = 0x1006
|
||||||
B921600 = 0x1007
|
B921600 = 0x1007
|
||||||
|
BLKALIGNOFF = 0x127a
|
||||||
BLKBSZGET = 0x80081270
|
BLKBSZGET = 0x80081270
|
||||||
BLKBSZSET = 0x40081271
|
BLKBSZSET = 0x40081271
|
||||||
|
BLKDISCARD = 0x1277
|
||||||
|
BLKDISCARDZEROES = 0x127c
|
||||||
BLKFLSBUF = 0x1261
|
BLKFLSBUF = 0x1261
|
||||||
BLKFRAGET = 0x1265
|
BLKFRAGET = 0x1265
|
||||||
BLKFRASET = 0x1264
|
BLKFRASET = 0x1264
|
||||||
|
BLKGETDISKSEQ = 0x80081280
|
||||||
BLKGETSIZE = 0x1260
|
BLKGETSIZE = 0x1260
|
||||||
BLKGETSIZE64 = 0x80081272
|
BLKGETSIZE64 = 0x80081272
|
||||||
|
BLKIOMIN = 0x1278
|
||||||
|
BLKIOOPT = 0x1279
|
||||||
BLKPBSZGET = 0x127b
|
BLKPBSZGET = 0x127b
|
||||||
BLKRAGET = 0x1263
|
BLKRAGET = 0x1263
|
||||||
BLKRASET = 0x1262
|
BLKRASET = 0x1262
|
||||||
BLKROGET = 0x125e
|
BLKROGET = 0x125e
|
||||||
BLKROSET = 0x125d
|
BLKROSET = 0x125d
|
||||||
|
BLKROTATIONAL = 0x127e
|
||||||
BLKRRPART = 0x125f
|
BLKRRPART = 0x125f
|
||||||
|
BLKSECDISCARD = 0x127d
|
||||||
BLKSECTGET = 0x1267
|
BLKSECTGET = 0x1267
|
||||||
BLKSECTSET = 0x1266
|
BLKSECTSET = 0x1266
|
||||||
BLKSSZGET = 0x1268
|
BLKSSZGET = 0x1268
|
||||||
|
BLKZEROOUT = 0x127f
|
||||||
BOTHER = 0x1000
|
BOTHER = 0x1000
|
||||||
BS1 = 0x2000
|
BS1 = 0x2000
|
||||||
BSDLY = 0x2000
|
BSDLY = 0x2000
|
||||||
|
|||||||
9
vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go
generated
vendored
9
vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go
generated
vendored
@@ -27,22 +27,31 @@ const (
|
|||||||
B57600 = 0x1001
|
B57600 = 0x1001
|
||||||
B576000 = 0x1006
|
B576000 = 0x1006
|
||||||
B921600 = 0x1007
|
B921600 = 0x1007
|
||||||
|
BLKALIGNOFF = 0x127a
|
||||||
BLKBSZGET = 0x80081270
|
BLKBSZGET = 0x80081270
|
||||||
BLKBSZSET = 0x40081271
|
BLKBSZSET = 0x40081271
|
||||||
|
BLKDISCARD = 0x1277
|
||||||
|
BLKDISCARDZEROES = 0x127c
|
||||||
BLKFLSBUF = 0x1261
|
BLKFLSBUF = 0x1261
|
||||||
BLKFRAGET = 0x1265
|
BLKFRAGET = 0x1265
|
||||||
BLKFRASET = 0x1264
|
BLKFRASET = 0x1264
|
||||||
|
BLKGETDISKSEQ = 0x80081280
|
||||||
BLKGETSIZE = 0x1260
|
BLKGETSIZE = 0x1260
|
||||||
BLKGETSIZE64 = 0x80081272
|
BLKGETSIZE64 = 0x80081272
|
||||||
|
BLKIOMIN = 0x1278
|
||||||
|
BLKIOOPT = 0x1279
|
||||||
BLKPBSZGET = 0x127b
|
BLKPBSZGET = 0x127b
|
||||||
BLKRAGET = 0x1263
|
BLKRAGET = 0x1263
|
||||||
BLKRASET = 0x1262
|
BLKRASET = 0x1262
|
||||||
BLKROGET = 0x125e
|
BLKROGET = 0x125e
|
||||||
BLKROSET = 0x125d
|
BLKROSET = 0x125d
|
||||||
|
BLKROTATIONAL = 0x127e
|
||||||
BLKRRPART = 0x125f
|
BLKRRPART = 0x125f
|
||||||
|
BLKSECDISCARD = 0x127d
|
||||||
BLKSECTGET = 0x1267
|
BLKSECTGET = 0x1267
|
||||||
BLKSECTSET = 0x1266
|
BLKSECTSET = 0x1266
|
||||||
BLKSSZGET = 0x1268
|
BLKSSZGET = 0x1268
|
||||||
|
BLKZEROOUT = 0x127f
|
||||||
BOTHER = 0x1000
|
BOTHER = 0x1000
|
||||||
BS1 = 0x2000
|
BS1 = 0x2000
|
||||||
BSDLY = 0x2000
|
BSDLY = 0x2000
|
||||||
|
|||||||
9
vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
generated
vendored
9
vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
generated
vendored
@@ -27,22 +27,31 @@ const (
|
|||||||
B57600 = 0x1001
|
B57600 = 0x1001
|
||||||
B576000 = 0x1006
|
B576000 = 0x1006
|
||||||
B921600 = 0x1007
|
B921600 = 0x1007
|
||||||
|
BLKALIGNOFF = 0x2000127a
|
||||||
BLKBSZGET = 0x40041270
|
BLKBSZGET = 0x40041270
|
||||||
BLKBSZSET = 0x80041271
|
BLKBSZSET = 0x80041271
|
||||||
|
BLKDISCARD = 0x20001277
|
||||||
|
BLKDISCARDZEROES = 0x2000127c
|
||||||
BLKFLSBUF = 0x20001261
|
BLKFLSBUF = 0x20001261
|
||||||
BLKFRAGET = 0x20001265
|
BLKFRAGET = 0x20001265
|
||||||
BLKFRASET = 0x20001264
|
BLKFRASET = 0x20001264
|
||||||
|
BLKGETDISKSEQ = 0x40081280
|
||||||
BLKGETSIZE = 0x20001260
|
BLKGETSIZE = 0x20001260
|
||||||
BLKGETSIZE64 = 0x40041272
|
BLKGETSIZE64 = 0x40041272
|
||||||
|
BLKIOMIN = 0x20001278
|
||||||
|
BLKIOOPT = 0x20001279
|
||||||
BLKPBSZGET = 0x2000127b
|
BLKPBSZGET = 0x2000127b
|
||||||
BLKRAGET = 0x20001263
|
BLKRAGET = 0x20001263
|
||||||
BLKRASET = 0x20001262
|
BLKRASET = 0x20001262
|
||||||
BLKROGET = 0x2000125e
|
BLKROGET = 0x2000125e
|
||||||
BLKROSET = 0x2000125d
|
BLKROSET = 0x2000125d
|
||||||
|
BLKROTATIONAL = 0x2000127e
|
||||||
BLKRRPART = 0x2000125f
|
BLKRRPART = 0x2000125f
|
||||||
|
BLKSECDISCARD = 0x2000127d
|
||||||
BLKSECTGET = 0x20001267
|
BLKSECTGET = 0x20001267
|
||||||
BLKSECTSET = 0x20001266
|
BLKSECTSET = 0x20001266
|
||||||
BLKSSZGET = 0x20001268
|
BLKSSZGET = 0x20001268
|
||||||
|
BLKZEROOUT = 0x2000127f
|
||||||
BOTHER = 0x1000
|
BOTHER = 0x1000
|
||||||
BS1 = 0x2000
|
BS1 = 0x2000
|
||||||
BSDLY = 0x2000
|
BSDLY = 0x2000
|
||||||
|
|||||||
9
vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
generated
vendored
9
vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
generated
vendored
@@ -27,22 +27,31 @@ const (
|
|||||||
B57600 = 0x1001
|
B57600 = 0x1001
|
||||||
B576000 = 0x1006
|
B576000 = 0x1006
|
||||||
B921600 = 0x1007
|
B921600 = 0x1007
|
||||||
|
BLKALIGNOFF = 0x2000127a
|
||||||
BLKBSZGET = 0x40081270
|
BLKBSZGET = 0x40081270
|
||||||
BLKBSZSET = 0x80081271
|
BLKBSZSET = 0x80081271
|
||||||
|
BLKDISCARD = 0x20001277
|
||||||
|
BLKDISCARDZEROES = 0x2000127c
|
||||||
BLKFLSBUF = 0x20001261
|
BLKFLSBUF = 0x20001261
|
||||||
BLKFRAGET = 0x20001265
|
BLKFRAGET = 0x20001265
|
||||||
BLKFRASET = 0x20001264
|
BLKFRASET = 0x20001264
|
||||||
|
BLKGETDISKSEQ = 0x40081280
|
||||||
BLKGETSIZE = 0x20001260
|
BLKGETSIZE = 0x20001260
|
||||||
BLKGETSIZE64 = 0x40081272
|
BLKGETSIZE64 = 0x40081272
|
||||||
|
BLKIOMIN = 0x20001278
|
||||||
|
BLKIOOPT = 0x20001279
|
||||||
BLKPBSZGET = 0x2000127b
|
BLKPBSZGET = 0x2000127b
|
||||||
BLKRAGET = 0x20001263
|
BLKRAGET = 0x20001263
|
||||||
BLKRASET = 0x20001262
|
BLKRASET = 0x20001262
|
||||||
BLKROGET = 0x2000125e
|
BLKROGET = 0x2000125e
|
||||||
BLKROSET = 0x2000125d
|
BLKROSET = 0x2000125d
|
||||||
|
BLKROTATIONAL = 0x2000127e
|
||||||
BLKRRPART = 0x2000125f
|
BLKRRPART = 0x2000125f
|
||||||
|
BLKSECDISCARD = 0x2000127d
|
||||||
BLKSECTGET = 0x20001267
|
BLKSECTGET = 0x20001267
|
||||||
BLKSECTSET = 0x20001266
|
BLKSECTSET = 0x20001266
|
||||||
BLKSSZGET = 0x20001268
|
BLKSSZGET = 0x20001268
|
||||||
|
BLKZEROOUT = 0x2000127f
|
||||||
BOTHER = 0x1000
|
BOTHER = 0x1000
|
||||||
BS1 = 0x2000
|
BS1 = 0x2000
|
||||||
BSDLY = 0x2000
|
BSDLY = 0x2000
|
||||||
|
|||||||
9
vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
generated
vendored
9
vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
generated
vendored
@@ -27,22 +27,31 @@ const (
|
|||||||
B57600 = 0x1001
|
B57600 = 0x1001
|
||||||
B576000 = 0x1006
|
B576000 = 0x1006
|
||||||
B921600 = 0x1007
|
B921600 = 0x1007
|
||||||
|
BLKALIGNOFF = 0x2000127a
|
||||||
BLKBSZGET = 0x40081270
|
BLKBSZGET = 0x40081270
|
||||||
BLKBSZSET = 0x80081271
|
BLKBSZSET = 0x80081271
|
||||||
|
BLKDISCARD = 0x20001277
|
||||||
|
BLKDISCARDZEROES = 0x2000127c
|
||||||
BLKFLSBUF = 0x20001261
|
BLKFLSBUF = 0x20001261
|
||||||
BLKFRAGET = 0x20001265
|
BLKFRAGET = 0x20001265
|
||||||
BLKFRASET = 0x20001264
|
BLKFRASET = 0x20001264
|
||||||
|
BLKGETDISKSEQ = 0x40081280
|
||||||
BLKGETSIZE = 0x20001260
|
BLKGETSIZE = 0x20001260
|
||||||
BLKGETSIZE64 = 0x40081272
|
BLKGETSIZE64 = 0x40081272
|
||||||
|
BLKIOMIN = 0x20001278
|
||||||
|
BLKIOOPT = 0x20001279
|
||||||
BLKPBSZGET = 0x2000127b
|
BLKPBSZGET = 0x2000127b
|
||||||
BLKRAGET = 0x20001263
|
BLKRAGET = 0x20001263
|
||||||
BLKRASET = 0x20001262
|
BLKRASET = 0x20001262
|
||||||
BLKROGET = 0x2000125e
|
BLKROGET = 0x2000125e
|
||||||
BLKROSET = 0x2000125d
|
BLKROSET = 0x2000125d
|
||||||
|
BLKROTATIONAL = 0x2000127e
|
||||||
BLKRRPART = 0x2000125f
|
BLKRRPART = 0x2000125f
|
||||||
|
BLKSECDISCARD = 0x2000127d
|
||||||
BLKSECTGET = 0x20001267
|
BLKSECTGET = 0x20001267
|
||||||
BLKSECTSET = 0x20001266
|
BLKSECTSET = 0x20001266
|
||||||
BLKSSZGET = 0x20001268
|
BLKSSZGET = 0x20001268
|
||||||
|
BLKZEROOUT = 0x2000127f
|
||||||
BOTHER = 0x1000
|
BOTHER = 0x1000
|
||||||
BS1 = 0x2000
|
BS1 = 0x2000
|
||||||
BSDLY = 0x2000
|
BSDLY = 0x2000
|
||||||
|
|||||||
9
vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
generated
vendored
9
vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
generated
vendored
@@ -27,22 +27,31 @@ const (
|
|||||||
B57600 = 0x1001
|
B57600 = 0x1001
|
||||||
B576000 = 0x1006
|
B576000 = 0x1006
|
||||||
B921600 = 0x1007
|
B921600 = 0x1007
|
||||||
|
BLKALIGNOFF = 0x2000127a
|
||||||
BLKBSZGET = 0x40041270
|
BLKBSZGET = 0x40041270
|
||||||
BLKBSZSET = 0x80041271
|
BLKBSZSET = 0x80041271
|
||||||
|
BLKDISCARD = 0x20001277
|
||||||
|
BLKDISCARDZEROES = 0x2000127c
|
||||||
BLKFLSBUF = 0x20001261
|
BLKFLSBUF = 0x20001261
|
||||||
BLKFRAGET = 0x20001265
|
BLKFRAGET = 0x20001265
|
||||||
BLKFRASET = 0x20001264
|
BLKFRASET = 0x20001264
|
||||||
|
BLKGETDISKSEQ = 0x40081280
|
||||||
BLKGETSIZE = 0x20001260
|
BLKGETSIZE = 0x20001260
|
||||||
BLKGETSIZE64 = 0x40041272
|
BLKGETSIZE64 = 0x40041272
|
||||||
|
BLKIOMIN = 0x20001278
|
||||||
|
BLKIOOPT = 0x20001279
|
||||||
BLKPBSZGET = 0x2000127b
|
BLKPBSZGET = 0x2000127b
|
||||||
BLKRAGET = 0x20001263
|
BLKRAGET = 0x20001263
|
||||||
BLKRASET = 0x20001262
|
BLKRASET = 0x20001262
|
||||||
BLKROGET = 0x2000125e
|
BLKROGET = 0x2000125e
|
||||||
BLKROSET = 0x2000125d
|
BLKROSET = 0x2000125d
|
||||||
|
BLKROTATIONAL = 0x2000127e
|
||||||
BLKRRPART = 0x2000125f
|
BLKRRPART = 0x2000125f
|
||||||
|
BLKSECDISCARD = 0x2000127d
|
||||||
BLKSECTGET = 0x20001267
|
BLKSECTGET = 0x20001267
|
||||||
BLKSECTSET = 0x20001266
|
BLKSECTSET = 0x20001266
|
||||||
BLKSSZGET = 0x20001268
|
BLKSSZGET = 0x20001268
|
||||||
|
BLKZEROOUT = 0x2000127f
|
||||||
BOTHER = 0x1000
|
BOTHER = 0x1000
|
||||||
BS1 = 0x2000
|
BS1 = 0x2000
|
||||||
BSDLY = 0x2000
|
BSDLY = 0x2000
|
||||||
|
|||||||
9
vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go
generated
vendored
9
vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go
generated
vendored
@@ -27,22 +27,31 @@ const (
|
|||||||
B57600 = 0x10
|
B57600 = 0x10
|
||||||
B576000 = 0x15
|
B576000 = 0x15
|
||||||
B921600 = 0x16
|
B921600 = 0x16
|
||||||
|
BLKALIGNOFF = 0x2000127a
|
||||||
BLKBSZGET = 0x40041270
|
BLKBSZGET = 0x40041270
|
||||||
BLKBSZSET = 0x80041271
|
BLKBSZSET = 0x80041271
|
||||||
|
BLKDISCARD = 0x20001277
|
||||||
|
BLKDISCARDZEROES = 0x2000127c
|
||||||
BLKFLSBUF = 0x20001261
|
BLKFLSBUF = 0x20001261
|
||||||
BLKFRAGET = 0x20001265
|
BLKFRAGET = 0x20001265
|
||||||
BLKFRASET = 0x20001264
|
BLKFRASET = 0x20001264
|
||||||
|
BLKGETDISKSEQ = 0x40081280
|
||||||
BLKGETSIZE = 0x20001260
|
BLKGETSIZE = 0x20001260
|
||||||
BLKGETSIZE64 = 0x40041272
|
BLKGETSIZE64 = 0x40041272
|
||||||
|
BLKIOMIN = 0x20001278
|
||||||
|
BLKIOOPT = 0x20001279
|
||||||
BLKPBSZGET = 0x2000127b
|
BLKPBSZGET = 0x2000127b
|
||||||
BLKRAGET = 0x20001263
|
BLKRAGET = 0x20001263
|
||||||
BLKRASET = 0x20001262
|
BLKRASET = 0x20001262
|
||||||
BLKROGET = 0x2000125e
|
BLKROGET = 0x2000125e
|
||||||
BLKROSET = 0x2000125d
|
BLKROSET = 0x2000125d
|
||||||
|
BLKROTATIONAL = 0x2000127e
|
||||||
BLKRRPART = 0x2000125f
|
BLKRRPART = 0x2000125f
|
||||||
|
BLKSECDISCARD = 0x2000127d
|
||||||
BLKSECTGET = 0x20001267
|
BLKSECTGET = 0x20001267
|
||||||
BLKSECTSET = 0x20001266
|
BLKSECTSET = 0x20001266
|
||||||
BLKSSZGET = 0x20001268
|
BLKSSZGET = 0x20001268
|
||||||
|
BLKZEROOUT = 0x2000127f
|
||||||
BOTHER = 0x1f
|
BOTHER = 0x1f
|
||||||
BS1 = 0x8000
|
BS1 = 0x8000
|
||||||
BSDLY = 0x8000
|
BSDLY = 0x8000
|
||||||
|
|||||||
9
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
generated
vendored
9
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
generated
vendored
@@ -27,22 +27,31 @@ const (
|
|||||||
B57600 = 0x10
|
B57600 = 0x10
|
||||||
B576000 = 0x15
|
B576000 = 0x15
|
||||||
B921600 = 0x16
|
B921600 = 0x16
|
||||||
|
BLKALIGNOFF = 0x2000127a
|
||||||
BLKBSZGET = 0x40081270
|
BLKBSZGET = 0x40081270
|
||||||
BLKBSZSET = 0x80081271
|
BLKBSZSET = 0x80081271
|
||||||
|
BLKDISCARD = 0x20001277
|
||||||
|
BLKDISCARDZEROES = 0x2000127c
|
||||||
BLKFLSBUF = 0x20001261
|
BLKFLSBUF = 0x20001261
|
||||||
BLKFRAGET = 0x20001265
|
BLKFRAGET = 0x20001265
|
||||||
BLKFRASET = 0x20001264
|
BLKFRASET = 0x20001264
|
||||||
|
BLKGETDISKSEQ = 0x40081280
|
||||||
BLKGETSIZE = 0x20001260
|
BLKGETSIZE = 0x20001260
|
||||||
BLKGETSIZE64 = 0x40081272
|
BLKGETSIZE64 = 0x40081272
|
||||||
|
BLKIOMIN = 0x20001278
|
||||||
|
BLKIOOPT = 0x20001279
|
||||||
BLKPBSZGET = 0x2000127b
|
BLKPBSZGET = 0x2000127b
|
||||||
BLKRAGET = 0x20001263
|
BLKRAGET = 0x20001263
|
||||||
BLKRASET = 0x20001262
|
BLKRASET = 0x20001262
|
||||||
BLKROGET = 0x2000125e
|
BLKROGET = 0x2000125e
|
||||||
BLKROSET = 0x2000125d
|
BLKROSET = 0x2000125d
|
||||||
|
BLKROTATIONAL = 0x2000127e
|
||||||
BLKRRPART = 0x2000125f
|
BLKRRPART = 0x2000125f
|
||||||
|
BLKSECDISCARD = 0x2000127d
|
||||||
BLKSECTGET = 0x20001267
|
BLKSECTGET = 0x20001267
|
||||||
BLKSECTSET = 0x20001266
|
BLKSECTSET = 0x20001266
|
||||||
BLKSSZGET = 0x20001268
|
BLKSSZGET = 0x20001268
|
||||||
|
BLKZEROOUT = 0x2000127f
|
||||||
BOTHER = 0x1f
|
BOTHER = 0x1f
|
||||||
BS1 = 0x8000
|
BS1 = 0x8000
|
||||||
BSDLY = 0x8000
|
BSDLY = 0x8000
|
||||||
|
|||||||
9
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
generated
vendored
9
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
generated
vendored
@@ -27,22 +27,31 @@ const (
|
|||||||
B57600 = 0x10
|
B57600 = 0x10
|
||||||
B576000 = 0x15
|
B576000 = 0x15
|
||||||
B921600 = 0x16
|
B921600 = 0x16
|
||||||
|
BLKALIGNOFF = 0x2000127a
|
||||||
BLKBSZGET = 0x40081270
|
BLKBSZGET = 0x40081270
|
||||||
BLKBSZSET = 0x80081271
|
BLKBSZSET = 0x80081271
|
||||||
|
BLKDISCARD = 0x20001277
|
||||||
|
BLKDISCARDZEROES = 0x2000127c
|
||||||
BLKFLSBUF = 0x20001261
|
BLKFLSBUF = 0x20001261
|
||||||
BLKFRAGET = 0x20001265
|
BLKFRAGET = 0x20001265
|
||||||
BLKFRASET = 0x20001264
|
BLKFRASET = 0x20001264
|
||||||
|
BLKGETDISKSEQ = 0x40081280
|
||||||
BLKGETSIZE = 0x20001260
|
BLKGETSIZE = 0x20001260
|
||||||
BLKGETSIZE64 = 0x40081272
|
BLKGETSIZE64 = 0x40081272
|
||||||
|
BLKIOMIN = 0x20001278
|
||||||
|
BLKIOOPT = 0x20001279
|
||||||
BLKPBSZGET = 0x2000127b
|
BLKPBSZGET = 0x2000127b
|
||||||
BLKRAGET = 0x20001263
|
BLKRAGET = 0x20001263
|
||||||
BLKRASET = 0x20001262
|
BLKRASET = 0x20001262
|
||||||
BLKROGET = 0x2000125e
|
BLKROGET = 0x2000125e
|
||||||
BLKROSET = 0x2000125d
|
BLKROSET = 0x2000125d
|
||||||
|
BLKROTATIONAL = 0x2000127e
|
||||||
BLKRRPART = 0x2000125f
|
BLKRRPART = 0x2000125f
|
||||||
|
BLKSECDISCARD = 0x2000127d
|
||||||
BLKSECTGET = 0x20001267
|
BLKSECTGET = 0x20001267
|
||||||
BLKSECTSET = 0x20001266
|
BLKSECTSET = 0x20001266
|
||||||
BLKSSZGET = 0x20001268
|
BLKSSZGET = 0x20001268
|
||||||
|
BLKZEROOUT = 0x2000127f
|
||||||
BOTHER = 0x1f
|
BOTHER = 0x1f
|
||||||
BS1 = 0x8000
|
BS1 = 0x8000
|
||||||
BSDLY = 0x8000
|
BSDLY = 0x8000
|
||||||
|
|||||||
9
vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go
generated
vendored
9
vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go
generated
vendored
@@ -27,22 +27,31 @@ const (
|
|||||||
B57600 = 0x1001
|
B57600 = 0x1001
|
||||||
B576000 = 0x1006
|
B576000 = 0x1006
|
||||||
B921600 = 0x1007
|
B921600 = 0x1007
|
||||||
|
BLKALIGNOFF = 0x127a
|
||||||
BLKBSZGET = 0x80081270
|
BLKBSZGET = 0x80081270
|
||||||
BLKBSZSET = 0x40081271
|
BLKBSZSET = 0x40081271
|
||||||
|
BLKDISCARD = 0x1277
|
||||||
|
BLKDISCARDZEROES = 0x127c
|
||||||
BLKFLSBUF = 0x1261
|
BLKFLSBUF = 0x1261
|
||||||
BLKFRAGET = 0x1265
|
BLKFRAGET = 0x1265
|
||||||
BLKFRASET = 0x1264
|
BLKFRASET = 0x1264
|
||||||
|
BLKGETDISKSEQ = 0x80081280
|
||||||
BLKGETSIZE = 0x1260
|
BLKGETSIZE = 0x1260
|
||||||
BLKGETSIZE64 = 0x80081272
|
BLKGETSIZE64 = 0x80081272
|
||||||
|
BLKIOMIN = 0x1278
|
||||||
|
BLKIOOPT = 0x1279
|
||||||
BLKPBSZGET = 0x127b
|
BLKPBSZGET = 0x127b
|
||||||
BLKRAGET = 0x1263
|
BLKRAGET = 0x1263
|
||||||
BLKRASET = 0x1262
|
BLKRASET = 0x1262
|
||||||
BLKROGET = 0x125e
|
BLKROGET = 0x125e
|
||||||
BLKROSET = 0x125d
|
BLKROSET = 0x125d
|
||||||
|
BLKROTATIONAL = 0x127e
|
||||||
BLKRRPART = 0x125f
|
BLKRRPART = 0x125f
|
||||||
|
BLKSECDISCARD = 0x127d
|
||||||
BLKSECTGET = 0x1267
|
BLKSECTGET = 0x1267
|
||||||
BLKSECTSET = 0x1266
|
BLKSECTSET = 0x1266
|
||||||
BLKSSZGET = 0x1268
|
BLKSSZGET = 0x1268
|
||||||
|
BLKZEROOUT = 0x127f
|
||||||
BOTHER = 0x1000
|
BOTHER = 0x1000
|
||||||
BS1 = 0x2000
|
BS1 = 0x2000
|
||||||
BSDLY = 0x2000
|
BSDLY = 0x2000
|
||||||
|
|||||||
9
vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
generated
vendored
9
vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
generated
vendored
@@ -27,22 +27,31 @@ const (
|
|||||||
B57600 = 0x1001
|
B57600 = 0x1001
|
||||||
B576000 = 0x1006
|
B576000 = 0x1006
|
||||||
B921600 = 0x1007
|
B921600 = 0x1007
|
||||||
|
BLKALIGNOFF = 0x127a
|
||||||
BLKBSZGET = 0x80081270
|
BLKBSZGET = 0x80081270
|
||||||
BLKBSZSET = 0x40081271
|
BLKBSZSET = 0x40081271
|
||||||
|
BLKDISCARD = 0x1277
|
||||||
|
BLKDISCARDZEROES = 0x127c
|
||||||
BLKFLSBUF = 0x1261
|
BLKFLSBUF = 0x1261
|
||||||
BLKFRAGET = 0x1265
|
BLKFRAGET = 0x1265
|
||||||
BLKFRASET = 0x1264
|
BLKFRASET = 0x1264
|
||||||
|
BLKGETDISKSEQ = 0x80081280
|
||||||
BLKGETSIZE = 0x1260
|
BLKGETSIZE = 0x1260
|
||||||
BLKGETSIZE64 = 0x80081272
|
BLKGETSIZE64 = 0x80081272
|
||||||
|
BLKIOMIN = 0x1278
|
||||||
|
BLKIOOPT = 0x1279
|
||||||
BLKPBSZGET = 0x127b
|
BLKPBSZGET = 0x127b
|
||||||
BLKRAGET = 0x1263
|
BLKRAGET = 0x1263
|
||||||
BLKRASET = 0x1262
|
BLKRASET = 0x1262
|
||||||
BLKROGET = 0x125e
|
BLKROGET = 0x125e
|
||||||
BLKROSET = 0x125d
|
BLKROSET = 0x125d
|
||||||
|
BLKROTATIONAL = 0x127e
|
||||||
BLKRRPART = 0x125f
|
BLKRRPART = 0x125f
|
||||||
|
BLKSECDISCARD = 0x127d
|
||||||
BLKSECTGET = 0x1267
|
BLKSECTGET = 0x1267
|
||||||
BLKSECTSET = 0x1266
|
BLKSECTSET = 0x1266
|
||||||
BLKSSZGET = 0x1268
|
BLKSSZGET = 0x1268
|
||||||
|
BLKZEROOUT = 0x127f
|
||||||
BOTHER = 0x1000
|
BOTHER = 0x1000
|
||||||
BS1 = 0x2000
|
BS1 = 0x2000
|
||||||
BSDLY = 0x2000
|
BSDLY = 0x2000
|
||||||
|
|||||||
9
vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
generated
vendored
9
vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
generated
vendored
@@ -30,22 +30,31 @@ const (
|
|||||||
B57600 = 0x1001
|
B57600 = 0x1001
|
||||||
B576000 = 0x1006
|
B576000 = 0x1006
|
||||||
B921600 = 0x1007
|
B921600 = 0x1007
|
||||||
|
BLKALIGNOFF = 0x2000127a
|
||||||
BLKBSZGET = 0x40081270
|
BLKBSZGET = 0x40081270
|
||||||
BLKBSZSET = 0x80081271
|
BLKBSZSET = 0x80081271
|
||||||
|
BLKDISCARD = 0x20001277
|
||||||
|
BLKDISCARDZEROES = 0x2000127c
|
||||||
BLKFLSBUF = 0x20001261
|
BLKFLSBUF = 0x20001261
|
||||||
BLKFRAGET = 0x20001265
|
BLKFRAGET = 0x20001265
|
||||||
BLKFRASET = 0x20001264
|
BLKFRASET = 0x20001264
|
||||||
|
BLKGETDISKSEQ = 0x40081280
|
||||||
BLKGETSIZE = 0x20001260
|
BLKGETSIZE = 0x20001260
|
||||||
BLKGETSIZE64 = 0x40081272
|
BLKGETSIZE64 = 0x40081272
|
||||||
|
BLKIOMIN = 0x20001278
|
||||||
|
BLKIOOPT = 0x20001279
|
||||||
BLKPBSZGET = 0x2000127b
|
BLKPBSZGET = 0x2000127b
|
||||||
BLKRAGET = 0x20001263
|
BLKRAGET = 0x20001263
|
||||||
BLKRASET = 0x20001262
|
BLKRASET = 0x20001262
|
||||||
BLKROGET = 0x2000125e
|
BLKROGET = 0x2000125e
|
||||||
BLKROSET = 0x2000125d
|
BLKROSET = 0x2000125d
|
||||||
|
BLKROTATIONAL = 0x2000127e
|
||||||
BLKRRPART = 0x2000125f
|
BLKRRPART = 0x2000125f
|
||||||
|
BLKSECDISCARD = 0x2000127d
|
||||||
BLKSECTGET = 0x20001267
|
BLKSECTGET = 0x20001267
|
||||||
BLKSECTSET = 0x20001266
|
BLKSECTSET = 0x20001266
|
||||||
BLKSSZGET = 0x20001268
|
BLKSSZGET = 0x20001268
|
||||||
|
BLKZEROOUT = 0x2000127f
|
||||||
BOTHER = 0x1000
|
BOTHER = 0x1000
|
||||||
BS1 = 0x2000
|
BS1 = 0x2000
|
||||||
BSDLY = 0x2000
|
BSDLY = 0x2000
|
||||||
|
|||||||
2
vendor/golang.org/x/sys/unix/zsyscall_linux.go
generated
vendored
2
vendor/golang.org/x/sys/unix/zsyscall_linux.go
generated
vendored
@@ -1356,7 +1356,7 @@ func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 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 Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
|
func pselect6(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *sigset_argpack) (n int, err error) {
|
||||||
r0, _, e1 := Syscall6(SYS_PSELECT6, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)))
|
r0, _, e1 := Syscall6(SYS_PSELECT6, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)))
|
||||||
n = int(r0)
|
n = int(r0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
|||||||
16
vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go
generated
vendored
16
vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go
generated
vendored
@@ -531,3 +531,19 @@ func kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, f
|
|||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func riscvHWProbe(pairs []RISCVHWProbePairs, cpuCount uintptr, cpus *CPUSet, flags uint) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(pairs) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&pairs[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_RISCV_HWPROBE, uintptr(_p0), uintptr(len(pairs)), uintptr(cpuCount), uintptr(unsafe.Pointer(cpus)), uintptr(flags), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|||||||
11
vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go
generated
vendored
11
vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go
generated
vendored
@@ -1858,3 +1858,14 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error
|
|||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func mremapNetBSD(oldp uintptr, oldsize uintptr, newp uintptr, newsize uintptr, flags int) (xaddr uintptr, err error) {
|
||||||
|
r0, _, e1 := Syscall6(SYS_MREMAP, uintptr(oldp), uintptr(oldsize), uintptr(newp), uintptr(newsize), uintptr(flags), 0)
|
||||||
|
xaddr = uintptr(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|||||||
11
vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go
generated
vendored
11
vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go
generated
vendored
@@ -1858,3 +1858,14 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error
|
|||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func mremapNetBSD(oldp uintptr, oldsize uintptr, newp uintptr, newsize uintptr, flags int) (xaddr uintptr, err error) {
|
||||||
|
r0, _, e1 := Syscall6(SYS_MREMAP, uintptr(oldp), uintptr(oldsize), uintptr(newp), uintptr(newsize), uintptr(flags), 0)
|
||||||
|
xaddr = uintptr(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|||||||
11
vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go
generated
vendored
11
vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go
generated
vendored
@@ -1858,3 +1858,14 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error
|
|||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func mremapNetBSD(oldp uintptr, oldsize uintptr, newp uintptr, newsize uintptr, flags int) (xaddr uintptr, err error) {
|
||||||
|
r0, _, e1 := Syscall6(SYS_MREMAP, uintptr(oldp), uintptr(oldsize), uintptr(newp), uintptr(newsize), uintptr(flags), 0)
|
||||||
|
xaddr = uintptr(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|||||||
11
vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go
generated
vendored
11
vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go
generated
vendored
@@ -1858,3 +1858,14 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error
|
|||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func mremapNetBSD(oldp uintptr, oldsize uintptr, newp uintptr, newsize uintptr, flags int) (xaddr uintptr, err error) {
|
||||||
|
r0, _, e1 := Syscall6(SYS_MREMAP, uintptr(oldp), uintptr(oldsize), uintptr(newp), uintptr(newsize), uintptr(flags), 0)
|
||||||
|
xaddr = uintptr(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|||||||
2
vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go
generated
vendored
2
vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go
generated
vendored
@@ -251,6 +251,8 @@ const (
|
|||||||
SYS_ACCEPT4 = 242
|
SYS_ACCEPT4 = 242
|
||||||
SYS_RECVMMSG = 243
|
SYS_RECVMMSG = 243
|
||||||
SYS_ARCH_SPECIFIC_SYSCALL = 244
|
SYS_ARCH_SPECIFIC_SYSCALL = 244
|
||||||
|
SYS_RISCV_HWPROBE = 258
|
||||||
|
SYS_RISCV_FLUSH_ICACHE = 259
|
||||||
SYS_WAIT4 = 260
|
SYS_WAIT4 = 260
|
||||||
SYS_PRLIMIT64 = 261
|
SYS_PRLIMIT64 = 261
|
||||||
SYS_FANOTIFY_INIT = 262
|
SYS_FANOTIFY_INIT = 262
|
||||||
|
|||||||
5
vendor/golang.org/x/sys/unix/ztypes_linux.go
generated
vendored
5
vendor/golang.org/x/sys/unix/ztypes_linux.go
generated
vendored
@@ -866,6 +866,11 @@ const (
|
|||||||
POLLNVAL = 0x20
|
POLLNVAL = 0x20
|
||||||
)
|
)
|
||||||
|
|
||||||
|
type sigset_argpack struct {
|
||||||
|
ss *Sigset_t
|
||||||
|
ssLen uintptr
|
||||||
|
}
|
||||||
|
|
||||||
type SignalfdSiginfo struct {
|
type SignalfdSiginfo struct {
|
||||||
Signo uint32
|
Signo uint32
|
||||||
Errno int32
|
Errno int32
|
||||||
|
|||||||
23
vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go
generated
vendored
23
vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go
generated
vendored
@@ -718,3 +718,26 @@ type SysvShmDesc struct {
|
|||||||
_ uint64
|
_ uint64
|
||||||
_ uint64
|
_ uint64
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type RISCVHWProbePairs struct {
|
||||||
|
Key int64
|
||||||
|
Value uint64
|
||||||
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
RISCV_HWPROBE_KEY_MVENDORID = 0x0
|
||||||
|
RISCV_HWPROBE_KEY_MARCHID = 0x1
|
||||||
|
RISCV_HWPROBE_KEY_MIMPID = 0x2
|
||||||
|
RISCV_HWPROBE_KEY_BASE_BEHAVIOR = 0x3
|
||||||
|
RISCV_HWPROBE_BASE_BEHAVIOR_IMA = 0x1
|
||||||
|
RISCV_HWPROBE_KEY_IMA_EXT_0 = 0x4
|
||||||
|
RISCV_HWPROBE_IMA_FD = 0x1
|
||||||
|
RISCV_HWPROBE_IMA_C = 0x2
|
||||||
|
RISCV_HWPROBE_KEY_CPUPERF_0 = 0x5
|
||||||
|
RISCV_HWPROBE_MISALIGNED_UNKNOWN = 0x0
|
||||||
|
RISCV_HWPROBE_MISALIGNED_EMULATED = 0x1
|
||||||
|
RISCV_HWPROBE_MISALIGNED_SLOW = 0x2
|
||||||
|
RISCV_HWPROBE_MISALIGNED_FAST = 0x3
|
||||||
|
RISCV_HWPROBE_MISALIGNED_UNSUPPORTED = 0x4
|
||||||
|
RISCV_HWPROBE_MISALIGNED_MASK = 0x7
|
||||||
|
)
|
||||||
|
|||||||
4
vendor/golang.org/x/sys/windows/syscall_windows.go
generated
vendored
4
vendor/golang.org/x/sys/windows/syscall_windows.go
generated
vendored
@@ -135,14 +135,14 @@ func Getpagesize() int { return 4096 }
|
|||||||
|
|
||||||
// NewCallback converts a Go function to a function pointer conforming to the stdcall calling convention.
|
// NewCallback converts a Go function to a function pointer conforming to the stdcall calling convention.
|
||||||
// This is useful when interoperating with Windows code requiring callbacks.
|
// This is useful when interoperating with Windows code requiring callbacks.
|
||||||
// The argument is expected to be a function with with one uintptr-sized result. The function must not have arguments with size larger than the size of uintptr.
|
// The argument is expected to be a function with one uintptr-sized result. The function must not have arguments with size larger than the size of uintptr.
|
||||||
func NewCallback(fn interface{}) uintptr {
|
func NewCallback(fn interface{}) uintptr {
|
||||||
return syscall.NewCallback(fn)
|
return syscall.NewCallback(fn)
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewCallbackCDecl converts a Go function to a function pointer conforming to the cdecl calling convention.
|
// NewCallbackCDecl converts a Go function to a function pointer conforming to the cdecl calling convention.
|
||||||
// This is useful when interoperating with Windows code requiring callbacks.
|
// This is useful when interoperating with Windows code requiring callbacks.
|
||||||
// The argument is expected to be a function with with one uintptr-sized result. The function must not have arguments with size larger than the size of uintptr.
|
// The argument is expected to be a function with one uintptr-sized result. The function must not have arguments with size larger than the size of uintptr.
|
||||||
func NewCallbackCDecl(fn interface{}) uintptr {
|
func NewCallbackCDecl(fn interface{}) uintptr {
|
||||||
return syscall.NewCallbackCDecl(fn)
|
return syscall.NewCallbackCDecl(fn)
|
||||||
}
|
}
|
||||||
|
|||||||
8
vendor/modules.txt
vendored
8
vendor/modules.txt
vendored
@@ -1,7 +1,7 @@
|
|||||||
# github.com/davecgh/go-spew v1.1.1
|
# github.com/davecgh/go-spew v1.1.1
|
||||||
## explicit
|
## explicit
|
||||||
github.com/davecgh/go-spew/spew
|
github.com/davecgh/go-spew/spew
|
||||||
# github.com/eleksir/go-xmpp v1.4.0
|
# github.com/eleksir/go-xmpp v1.5.0
|
||||||
## explicit; go 1.20
|
## explicit; go 1.20
|
||||||
github.com/eleksir/go-xmpp
|
github.com/eleksir/go-xmpp
|
||||||
# github.com/hjson/hjson-go v3.3.0+incompatible
|
# github.com/hjson/hjson-go v3.3.0+incompatible
|
||||||
@@ -10,14 +10,14 @@ github.com/hjson/hjson-go
|
|||||||
# github.com/sirupsen/logrus v1.9.3
|
# github.com/sirupsen/logrus v1.9.3
|
||||||
## explicit; go 1.13
|
## explicit; go 1.13
|
||||||
github.com/sirupsen/logrus
|
github.com/sirupsen/logrus
|
||||||
# golang.org/x/crypto v0.11.0
|
# golang.org/x/crypto v0.12.0
|
||||||
## explicit; go 1.17
|
## explicit; go 1.17
|
||||||
golang.org/x/crypto/pbkdf2
|
golang.org/x/crypto/pbkdf2
|
||||||
# golang.org/x/exp v0.0.0-20230728194245-b0cb94b80691
|
# golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63
|
||||||
## explicit; go 1.20
|
## explicit; go 1.20
|
||||||
golang.org/x/exp/constraints
|
golang.org/x/exp/constraints
|
||||||
golang.org/x/exp/slices
|
golang.org/x/exp/slices
|
||||||
# golang.org/x/sys v0.10.0
|
# golang.org/x/sys v0.11.0
|
||||||
## explicit; go 1.17
|
## explicit; go 1.17
|
||||||
golang.org/x/sys/internal/unsafeheader
|
golang.org/x/sys/internal/unsafeheader
|
||||||
golang.org/x/sys/unix
|
golang.org/x/sys/unix
|
||||||
|
|||||||
Reference in New Issue
Block a user