Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dex
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
dex
Commits
6e5a2b5e
Unverified
Commit
6e5a2b5e
authored
Aug 14, 2019
by
Stephan Renatus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deps: bump go-grpc (1.22.1 -> 1.23.0)
Signed-off-by:
Stephan Renatus
<
srenatus@chef.io
>
parent
27b84267
Hide whitespace changes
Inline
Side-by-side
Showing
52 changed files
with
461 additions
and
295 deletions
+461
-295
go.mod
go.mod
+5
-5
go.sum
go.sum
+11
-10
server.go
vendor/golang.org/x/net/http2/server.go
+38
-8
writesched.go
vendor/golang.org/x/net/http2/writesched.go
+7
-1
dirent.go
vendor/golang.org/x/sys/unix/dirent.go
+1
-1
syscall_darwin.go
vendor/golang.org/x/sys/unix/syscall_darwin.go
+0
-1
syscall_darwin_386.go
vendor/golang.org/x/sys/unix/syscall_darwin_386.go
+2
-0
syscall_darwin_amd64.go
vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go
+2
-0
syscall_darwin_arm.go
vendor/golang.org/x/sys/unix/syscall_darwin_arm.go
+4
-0
syscall_darwin_arm64.go
vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go
+4
-0
zerrors_linux_386.go
vendor/golang.org/x/sys/unix/zerrors_linux_386.go
+2
-0
zerrors_linux_amd64.go
vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
+2
-0
zerrors_linux_arm.go
vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
+2
-0
zerrors_linux_arm64.go
vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
+2
-0
zerrors_linux_mips.go
vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
+2
-0
zerrors_linux_mips64.go
vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
+2
-0
zerrors_linux_mips64le.go
vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
+2
-0
zerrors_linux_mipsle.go
vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
+2
-0
zerrors_linux_ppc64.go
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
+2
-0
zerrors_linux_ppc64le.go
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
+2
-0
zerrors_linux_riscv64.go
vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go
+2
-0
zerrors_linux_s390x.go
vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
+2
-0
zerrors_linux_sparc64.go
vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
+2
-0
zsyscall_darwin_386.1_11.go
vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_11.go
+10
-10
zsyscall_darwin_386.go
vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go
+15
-15
zsyscall_darwin_386.s
vendor/golang.org/x/sys/unix/zsyscall_darwin_386.s
+2
-2
zsyscall_darwin_amd64.go
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
+15
-15
zsyscall_darwin_amd64.s
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s
+2
-2
zsyscall_darwin_arm.go
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go
+0
-15
zsyscall_darwin_arm.s
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.s
+0
-2
zsyscall_darwin_arm64.go
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
+0
-15
zsyscall_darwin_arm64.s
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s
+0
-2
ztypes_linux_riscv64.go
vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go
+1
-0
service.go
vendor/golang.org/x/sys/windows/service.go
+4
-0
balancer.go
vendor/google.golang.org/grpc/balancer.go
+4
-4
balancer.go
vendor/google.golang.org/grpc/balancer/base/balancer.go
+9
-3
balancer_conn_wrappers.go
vendor/google.golang.org/grpc/balancer_conn_wrappers.go
+1
-1
clientconn.go
vendor/google.golang.org/grpc/clientconn.go
+43
-29
dialoptions.go
vendor/google.golang.org/grpc/dialoptions.go
+22
-26
envconfig.go
...or/google.golang.org/grpc/internal/envconfig/envconfig.go
+2
-31
controlbuf.go
...r/google.golang.org/grpc/internal/transport/controlbuf.go
+81
-3
flowcontrol.go
.../google.golang.org/grpc/internal/transport/flowcontrol.go
+1
-2
http2_client.go
...google.golang.org/grpc/internal/transport/http2_client.go
+17
-9
http2_server.go
...google.golang.org/grpc/internal/transport/http2_server.go
+13
-12
transport.go
...or/google.golang.org/grpc/internal/transport/transport.go
+21
-0
pickfirst.go
vendor/google.golang.org/grpc/pickfirst.go
+12
-4
server.go
vendor/google.golang.org/grpc/server.go
+25
-40
status.go
vendor/google.golang.org/grpc/status/status.go
+13
-2
stream.go
vendor/google.golang.org/grpc/stream.go
+34
-16
version.go
vendor/google.golang.org/grpc/version.go
+1
-1
vet.sh
vendor/google.golang.org/grpc/vet.sh
+8
-3
modules.txt
vendor/modules.txt
+5
-5
No files found.
go.mod
View file @
6e5a2b5e
...
...
@@ -47,14 +47,14 @@ require (
go.uber.org/zap v1.10.0 // indirect
golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4
golang.org/x/lint v0.0.0-20190409202823-959b441ac422
golang.org/x/net v0.0.0-20190
724013045-ca1201d0de80
golang.org/x/net v0.0.0-20190
813141303-74dc4d7220e7
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45
golang.org/x/sys v0.0.0-20190
730183949-1393eb018365
// indirect
golang.org/x/sys v0.0.0-20190
813064441-fde4db37ae7a
// indirect
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4 // indirect
golang.org/x/tools v0.0.0-20190
730215328-ed3277de2799
// indirect
golang.org/x/tools v0.0.0-20190
813214729-9dba7caff850
// indirect
google.golang.org/appengine v1.6.1 // indirect
google.golang.org/genproto v0.0.0-20190
716160619-c506a9f90610
// indirect
google.golang.org/grpc v1.2
2.1
google.golang.org/genproto v0.0.0-20190
801165951-fa694d86fc64
// indirect
google.golang.org/grpc v1.2
3.0
gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d // indirect
gopkg.in/ldap.v2 v2.5.1
gopkg.in/square/go-jose.v2 v2.3.1
...
...
go.sum
View file @
6e5a2b5e
...
...
@@ -195,8 +195,8 @@ golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn
golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20190
724013045-ca1201d0de80 h1:Ao/3l156eZf2AW5wK8a7/smtodRU+gha3+BeqJ69lRk
=
golang.org/x/net v0.0.0-20190
724013045-ca1201d0de80
/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20190
813141303-74dc4d7220e7 h1:fHDIZ2oxGnUZRN6WgWFCbYBjH9uqVPRCUVUDhs0wnbA
=
golang.org/x/net v0.0.0-20190
813141303-74dc4d7220e7
/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 h1:SVwTIAaPC2U/AvvLNZ2a7OVsmBpC8L5BlwK1whH3hm0=
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
...
...
@@ -214,8 +214,8 @@ golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5h
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190
730183949-1393eb018365 h1:SaXEMXhWzMJThc05vu6uh61Q245r4KaWMrsTedk0FDc
=
golang.org/x/sys v0.0.0-20190
730183949-1393eb018365
/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190
813064441-fde4db37ae7a h1:aYOabOQFp6Vj6W1F80affTUvO9UxmJRx8K0gsfABByQ
=
golang.org/x/sys v0.0.0-20190
813064441-fde4db37ae7a
/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
...
...
@@ -228,18 +228,19 @@ golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3
golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
golang.org/x/tools v0.0.0-20190730215328-ed3277de2799 h1:rvNf5qrBjmtxebJHK+blZSkGIv+Yg6UlDnl2ApkB6m4=
golang.org/x/tools v0.0.0-20190730215328-ed3277de2799/go.mod h1:jcCCGcm9btYwXyDqrUWc6MKQKKGJCWEQ3AfLSRIbEuI=
golang.org/x/tools v0.0.0-20190813214729-9dba7caff850 h1:I+2i9HEjvv+3iJrNMhjMJOMF/FXz9eI08iBlDF4w24I=
golang.org/x/tools v0.0.0-20190813214729-9dba7caff850/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
google.golang.org/appengine v1.6.1 h1:QzqyMA1tlu6CgqCDUtU9V+ZKhLFT2dkJuANu5QaxI3I=
google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0=
google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
google.golang.org/genproto v0.0.0-20190
716160619-c506a9f90610 h1:Ygq9/SRJX9+dU0WCIICM8RkWvDw03lvB77hrhJnpxfU
=
google.golang.org/genproto v0.0.0-20190
716160619-c506a9f90610
/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
google.golang.org/genproto v0.0.0-20190
801165951-fa694d86fc64 h1:iKtrH9Y8mcbADOP0YFaEMth7OfuHY9xHOwNj4znpM1A
=
google.golang.org/genproto v0.0.0-20190
801165951-fa694d86fc64
/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
google.golang.org/grpc v1.2
2.1 h1:/7cs52RnTJmD43s3uxzlq2U7nqVTd/37viQwMrMNlOM
=
google.golang.org/grpc v1.2
2.1
/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
google.golang.org/grpc v1.2
3.0 h1:AzbTB6ux+okLTzP8Ru1Xs41C303zdcfEht7MQnYJt5A
=
google.golang.org/grpc v1.2
3.0
/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d h1:TxyelI5cVkbREznMhfzycHdkp5cLA7DpE+GKjSslYhM=
gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d/go.mod h1:cuepJuh7vyXfUyUwEgHQXw849cJrilpS5NeIjOWESAw=
...
...
vendor/golang.org/x/net/http2/server.go
View file @
6e5a2b5e
...
...
@@ -52,10 +52,11 @@ import (
)
const
(
prefaceTimeout
=
10
*
time
.
Second
firstSettingsTimeout
=
2
*
time
.
Second
// should be in-flight with preface anyway
handlerChunkWriteSize
=
4
<<
10
defaultMaxStreams
=
250
// TODO: make this 100 as the GFE seems to?
prefaceTimeout
=
10
*
time
.
Second
firstSettingsTimeout
=
2
*
time
.
Second
// should be in-flight with preface anyway
handlerChunkWriteSize
=
4
<<
10
defaultMaxStreams
=
250
// TODO: make this 100 as the GFE seems to?
maxQueuedControlFrames
=
10000
)
var
(
...
...
@@ -163,6 +164,15 @@ func (s *Server) maxConcurrentStreams() uint32 {
return
defaultMaxStreams
}
// maxQueuedControlFrames is the maximum number of control frames like
// SETTINGS, PING and RST_STREAM that will be queued for writing before
// the connection is closed to prevent memory exhaustion attacks.
func
(
s
*
Server
)
maxQueuedControlFrames
()
int
{
// TODO: if anybody asks, add a Server field, and remember to define the
// behavior of negative values.
return
maxQueuedControlFrames
}
type
serverInternalState
struct
{
mu
sync
.
Mutex
activeConns
map
[
*
serverConn
]
struct
{}
...
...
@@ -506,6 +516,7 @@ type serverConn struct {
sawFirstSettings
bool
// got the initial SETTINGS frame after the preface
needToSendSettingsAck
bool
unackedSettings
int
// how many SETTINGS have we sent without ACKs?
queuedControlFrames
int
// control frames in the writeSched queue
clientMaxStreams
uint32
// SETTINGS_MAX_CONCURRENT_STREAMS from client (our PUSH_PROMISE limit)
advMaxStreams
uint32
// our SETTINGS_MAX_CONCURRENT_STREAMS advertised the client
curClientStreams
uint32
// number of open streams initiated by the client
...
...
@@ -894,6 +905,14 @@ func (sc *serverConn) serve() {
}
}
// If the peer is causing us to generate a lot of control frames,
// but not reading them from us, assume they are trying to make us
// run out of memory.
if
sc
.
queuedControlFrames
>
sc
.
srv
.
maxQueuedControlFrames
()
{
sc
.
vlogf
(
"http2: too many control frames in send queue, closing connection"
)
return
}
// Start the shutdown timer after sending a GOAWAY. When sending GOAWAY
// with no error code (graceful shutdown), don't start the timer until
// all open streams have been completed.
...
...
@@ -1093,6 +1112,14 @@ func (sc *serverConn) writeFrame(wr FrameWriteRequest) {
}
if
!
ignoreWrite
{
if
wr
.
isControl
()
{
sc
.
queuedControlFrames
++
// For extra safety, detect wraparounds, which should not happen,
// and pull the plug.
if
sc
.
queuedControlFrames
<
0
{
sc
.
conn
.
Close
()
}
}
sc
.
writeSched
.
Push
(
wr
)
}
sc
.
scheduleFrameWrite
()
...
...
@@ -1210,10 +1237,8 @@ func (sc *serverConn) wroteFrame(res frameWriteResult) {
// If a frame is already being written, nothing happens. This will be called again
// when the frame is done being written.
//
// If a frame isn't being written we need to send one, the best frame
// to send is selected, preferring first things that aren't
// stream-specific (e.g. ACKing settings), and then finding the
// highest priority stream.
// If a frame isn't being written and we need to send one, the best frame
// to send is selected by writeSched.
//
// If a frame isn't being written and there's nothing else to send, we
// flush the write buffer.
...
...
@@ -1241,6 +1266,9 @@ func (sc *serverConn) scheduleFrameWrite() {
}
if
!
sc
.
inGoAway
||
sc
.
goAwayCode
==
ErrCodeNo
{
if
wr
,
ok
:=
sc
.
writeSched
.
Pop
();
ok
{
if
wr
.
isControl
()
{
sc
.
queuedControlFrames
--
}
sc
.
startFrameWrite
(
wr
)
continue
}
...
...
@@ -1533,6 +1561,8 @@ func (sc *serverConn) processSettings(f *SettingsFrame) error {
if
err
:=
f
.
ForeachSetting
(
sc
.
processSetting
);
err
!=
nil
{
return
err
}
// TODO: judging by RFC 7540, Section 6.5.3 each SETTINGS frame should be
// acknowledged individually, even if multiple are received before the ACK.
sc
.
needToSendSettingsAck
=
true
sc
.
scheduleFrameWrite
()
return
nil
...
...
vendor/golang.org/x/net/http2/writesched.go
View file @
6e5a2b5e
...
...
@@ -32,7 +32,7 @@ type WriteScheduler interface {
// Pop dequeues the next frame to write. Returns false if no frames can
// be written. Frames with a given wr.StreamID() are Pop'd in the same
// order they are Push'd.
// order they are Push'd.
No frames should be discarded except by CloseStream.
Pop
()
(
wr
FrameWriteRequest
,
ok
bool
)
}
...
...
@@ -76,6 +76,12 @@ func (wr FrameWriteRequest) StreamID() uint32 {
return
wr
.
stream
.
id
}
// isControl reports whether wr is a control frame for MaxQueuedControlFrames
// purposes. That includes non-stream frames and RST_STREAM frames.
func
(
wr
FrameWriteRequest
)
isControl
()
bool
{
return
wr
.
stream
==
nil
}
// DataSize returns the number of flow control bytes that must be consumed
// to write this entire frame. This is 0 for non-DATA frames.
func
(
wr
FrameWriteRequest
)
DataSize
()
int
{
...
...
vendor/golang.org/x/sys/unix/dirent.go
View file @
6e5a2b5e
...
...
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build aix darwin dragonfly freebsd linux n
acl n
etbsd openbsd solaris
// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
package
unix
...
...
vendor/golang.org/x/sys/unix/syscall_darwin.go
View file @
6e5a2b5e
...
...
@@ -89,7 +89,6 @@ func direntNamlen(buf []byte) (uint64, bool) {
return
readInt
(
buf
,
unsafe
.
Offsetof
(
Dirent
{}
.
Namlen
),
unsafe
.
Sizeof
(
Dirent
{}
.
Namlen
))
}
//sys ptrace(request int, pid int, addr uintptr, data uintptr) (err error)
func
PtraceAttach
(
pid
int
)
(
err
error
)
{
return
ptrace
(
PT_ATTACH
,
pid
,
0
,
0
)
}
func
PtraceDetach
(
pid
int
)
(
err
error
)
{
return
ptrace
(
PT_DETACH
,
pid
,
0
,
0
)
}
...
...
vendor/golang.org/x/sys/unix/syscall_darwin_386.go
View file @
6e5a2b5e
...
...
@@ -10,6 +10,8 @@ import (
"syscall"
)
//sys ptrace(request int, pid int, addr uintptr, data uintptr) (err error)
func
setTimespec
(
sec
,
nsec
int64
)
Timespec
{
return
Timespec
{
Sec
:
int32
(
sec
),
Nsec
:
int32
(
nsec
)}
}
...
...
vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go
View file @
6e5a2b5e
...
...
@@ -10,6 +10,8 @@ import (
"syscall"
)
//sys ptrace(request int, pid int, addr uintptr, data uintptr) (err error)
func
setTimespec
(
sec
,
nsec
int64
)
Timespec
{
return
Timespec
{
Sec
:
sec
,
Nsec
:
nsec
}
}
...
...
vendor/golang.org/x/sys/unix/syscall_darwin_arm.go
View file @
6e5a2b5e
...
...
@@ -8,6 +8,10 @@ import (
"syscall"
)
func
ptrace
(
request
int
,
pid
int
,
addr
uintptr
,
data
uintptr
)
error
{
return
ENOTSUP
}
func
setTimespec
(
sec
,
nsec
int64
)
Timespec
{
return
Timespec
{
Sec
:
int32
(
sec
),
Nsec
:
int32
(
nsec
)}
}
...
...
vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go
View file @
6e5a2b5e
...
...
@@ -10,6 +10,10 @@ import (
"syscall"
)
func
ptrace
(
request
int
,
pid
int
,
addr
uintptr
,
data
uintptr
)
error
{
return
ENOTSUP
}
func
setTimespec
(
sec
,
nsec
int64
)
Timespec
{
return
Timespec
{
Sec
:
sec
,
Nsec
:
nsec
}
}
...
...
vendor/golang.org/x/sys/unix/zerrors_linux_386.go
View file @
6e5a2b5e
...
...
@@ -722,6 +722,7 @@ const (
F_OFD_SETLKW
=
0x26
F_OK
=
0x0
F_RDLCK
=
0x0
F_SEAL_FUTURE_WRITE
=
0x10
F_SEAL_GROW
=
0x4
F_SEAL_SEAL
=
0x1
F_SEAL_SHRINK
=
0x2
...
...
@@ -987,6 +988,7 @@ const (
IPV6_RECVRTHDR
=
0x38
IPV6_RECVTCLASS
=
0x42
IPV6_ROUTER_ALERT
=
0x16
IPV6_ROUTER_ALERT_ISOLATE
=
0x1e
IPV6_RTHDR
=
0x39
IPV6_RTHDRDSTOPTS
=
0x37
IPV6_RTHDR_LOOSE
=
0x0
...
...
vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
View file @
6e5a2b5e
...
...
@@ -722,6 +722,7 @@ const (
F_OFD_SETLKW
=
0x26
F_OK
=
0x0
F_RDLCK
=
0x0
F_SEAL_FUTURE_WRITE
=
0x10
F_SEAL_GROW
=
0x4
F_SEAL_SEAL
=
0x1
F_SEAL_SHRINK
=
0x2
...
...
@@ -987,6 +988,7 @@ const (
IPV6_RECVRTHDR
=
0x38
IPV6_RECVTCLASS
=
0x42
IPV6_ROUTER_ALERT
=
0x16
IPV6_ROUTER_ALERT_ISOLATE
=
0x1e
IPV6_RTHDR
=
0x39
IPV6_RTHDRDSTOPTS
=
0x37
IPV6_RTHDR_LOOSE
=
0x0
...
...
vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
View file @
6e5a2b5e
...
...
@@ -721,6 +721,7 @@ const (
F_OFD_SETLKW
=
0x26
F_OK
=
0x0
F_RDLCK
=
0x0
F_SEAL_FUTURE_WRITE
=
0x10
F_SEAL_GROW
=
0x4
F_SEAL_SEAL
=
0x1
F_SEAL_SHRINK
=
0x2
...
...
@@ -986,6 +987,7 @@ const (
IPV6_RECVRTHDR
=
0x38
IPV6_RECVTCLASS
=
0x42
IPV6_ROUTER_ALERT
=
0x16
IPV6_ROUTER_ALERT_ISOLATE
=
0x1e
IPV6_RTHDR
=
0x39
IPV6_RTHDRDSTOPTS
=
0x37
IPV6_RTHDR_LOOSE
=
0x0
...
...
vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
View file @
6e5a2b5e
...
...
@@ -724,6 +724,7 @@ const (
F_OFD_SETLKW
=
0x26
F_OK
=
0x0
F_RDLCK
=
0x0
F_SEAL_FUTURE_WRITE
=
0x10
F_SEAL_GROW
=
0x4
F_SEAL_SEAL
=
0x1
F_SEAL_SHRINK
=
0x2
...
...
@@ -989,6 +990,7 @@ const (
IPV6_RECVRTHDR
=
0x38
IPV6_RECVTCLASS
=
0x42
IPV6_ROUTER_ALERT
=
0x16
IPV6_ROUTER_ALERT_ISOLATE
=
0x1e
IPV6_RTHDR
=
0x39
IPV6_RTHDRDSTOPTS
=
0x37
IPV6_RTHDR_LOOSE
=
0x0
...
...
vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
View file @
6e5a2b5e
...
...
@@ -721,6 +721,7 @@ const (
F_OFD_SETLKW
=
0x26
F_OK
=
0x0
F_RDLCK
=
0x0
F_SEAL_FUTURE_WRITE
=
0x10
F_SEAL_GROW
=
0x4
F_SEAL_SEAL
=
0x1
F_SEAL_SHRINK
=
0x2
...
...
@@ -986,6 +987,7 @@ const (
IPV6_RECVRTHDR
=
0x38
IPV6_RECVTCLASS
=
0x42
IPV6_ROUTER_ALERT
=
0x16
IPV6_ROUTER_ALERT_ISOLATE
=
0x1e
IPV6_RTHDR
=
0x39
IPV6_RTHDRDSTOPTS
=
0x37
IPV6_RTHDR_LOOSE
=
0x0
...
...
vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
View file @
6e5a2b5e
...
...
@@ -721,6 +721,7 @@ const (
F_OFD_SETLKW
=
0x26
F_OK
=
0x0
F_RDLCK
=
0x0
F_SEAL_FUTURE_WRITE
=
0x10
F_SEAL_GROW
=
0x4
F_SEAL_SEAL
=
0x1
F_SEAL_SHRINK
=
0x2
...
...
@@ -986,6 +987,7 @@ const (
IPV6_RECVRTHDR
=
0x38
IPV6_RECVTCLASS
=
0x42
IPV6_ROUTER_ALERT
=
0x16
IPV6_ROUTER_ALERT_ISOLATE
=
0x1e
IPV6_RTHDR
=
0x39
IPV6_RTHDRDSTOPTS
=
0x37
IPV6_RTHDR_LOOSE
=
0x0
...
...
vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
View file @
6e5a2b5e
...
...
@@ -721,6 +721,7 @@ const (
F_OFD_SETLKW
=
0x26
F_OK
=
0x0
F_RDLCK
=
0x0
F_SEAL_FUTURE_WRITE
=
0x10
F_SEAL_GROW
=
0x4
F_SEAL_SEAL
=
0x1
F_SEAL_SHRINK
=
0x2
...
...
@@ -986,6 +987,7 @@ const (
IPV6_RECVRTHDR
=
0x38
IPV6_RECVTCLASS
=
0x42
IPV6_ROUTER_ALERT
=
0x16
IPV6_ROUTER_ALERT_ISOLATE
=
0x1e
IPV6_RTHDR
=
0x39
IPV6_RTHDRDSTOPTS
=
0x37
IPV6_RTHDR_LOOSE
=
0x0
...
...
vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
View file @
6e5a2b5e
...
...
@@ -721,6 +721,7 @@ const (
F_OFD_SETLKW
=
0x26
F_OK
=
0x0
F_RDLCK
=
0x0
F_SEAL_FUTURE_WRITE
=
0x10
F_SEAL_GROW
=
0x4
F_SEAL_SEAL
=
0x1
F_SEAL_SHRINK
=
0x2
...
...
@@ -986,6 +987,7 @@ const (
IPV6_RECVRTHDR
=
0x38
IPV6_RECVTCLASS
=
0x42
IPV6_ROUTER_ALERT
=
0x16
IPV6_ROUTER_ALERT_ISOLATE
=
0x1e
IPV6_RTHDR
=
0x39
IPV6_RTHDRDSTOPTS
=
0x37
IPV6_RTHDR_LOOSE
=
0x0
...
...
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
View file @
6e5a2b5e
...
...
@@ -721,6 +721,7 @@ const (
F_OFD_SETLKW
=
0x26
F_OK
=
0x0
F_RDLCK
=
0x0
F_SEAL_FUTURE_WRITE
=
0x10
F_SEAL_GROW
=
0x4
F_SEAL_SEAL
=
0x1
F_SEAL_SHRINK
=
0x2
...
...
@@ -986,6 +987,7 @@ const (
IPV6_RECVRTHDR
=
0x38
IPV6_RECVTCLASS
=
0x42
IPV6_ROUTER_ALERT
=
0x16
IPV6_ROUTER_ALERT_ISOLATE
=
0x1e
IPV6_RTHDR
=
0x39
IPV6_RTHDRDSTOPTS
=
0x37
IPV6_RTHDR_LOOSE
=
0x0
...
...
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
View file @
6e5a2b5e
...
...
@@ -721,6 +721,7 @@ const (
F_OFD_SETLKW
=
0x26
F_OK
=
0x0
F_RDLCK
=
0x0
F_SEAL_FUTURE_WRITE
=
0x10
F_SEAL_GROW
=
0x4
F_SEAL_SEAL
=
0x1
F_SEAL_SHRINK
=
0x2
...
...
@@ -986,6 +987,7 @@ const (
IPV6_RECVRTHDR
=
0x38
IPV6_RECVTCLASS
=
0x42
IPV6_ROUTER_ALERT
=
0x16
IPV6_ROUTER_ALERT_ISOLATE
=
0x1e
IPV6_RTHDR
=
0x39
IPV6_RTHDRDSTOPTS
=
0x37
IPV6_RTHDR_LOOSE
=
0x0
...
...
vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go
View file @
6e5a2b5e
...
...
@@ -721,6 +721,7 @@ const (
F_OFD_SETLKW
=
0x26
F_OK
=
0x0
F_RDLCK
=
0x0
F_SEAL_FUTURE_WRITE
=
0x10
F_SEAL_GROW
=
0x4
F_SEAL_SEAL
=
0x1
F_SEAL_SHRINK
=
0x2
...
...
@@ -986,6 +987,7 @@ const (
IPV6_RECVRTHDR
=
0x38
IPV6_RECVTCLASS
=
0x42
IPV6_ROUTER_ALERT
=
0x16
IPV6_ROUTER_ALERT_ISOLATE
=
0x1e
IPV6_RTHDR
=
0x39
IPV6_RTHDRDSTOPTS
=
0x37
IPV6_RTHDR_LOOSE
=
0x0
...
...
vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
View file @
6e5a2b5e
...
...
@@ -721,6 +721,7 @@ const (
F_OFD_SETLKW
=
0x26
F_OK
=
0x0
F_RDLCK
=
0x0
F_SEAL_FUTURE_WRITE
=
0x10
F_SEAL_GROW
=
0x4
F_SEAL_SEAL
=
0x1
F_SEAL_SHRINK
=
0x2
...
...
@@ -986,6 +987,7 @@ const (
IPV6_RECVRTHDR
=
0x38
IPV6_RECVTCLASS
=
0x42
IPV6_ROUTER_ALERT
=
0x16
IPV6_ROUTER_ALERT_ISOLATE
=
0x1e
IPV6_RTHDR
=
0x39
IPV6_RTHDRDSTOPTS
=
0x37
IPV6_RTHDR_LOOSE
=
0x0
...
...
vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
View file @
6e5a2b5e
...
...
@@ -725,6 +725,7 @@ const (
F_OFD_SETLKW
=
0x26
F_OK
=
0x0
F_RDLCK
=
0x1
F_SEAL_FUTURE_WRITE
=
0x10
F_SEAL_GROW
=
0x4
F_SEAL_SEAL
=
0x1
F_SEAL_SHRINK
=
0x2
...
...
@@ -990,6 +991,7 @@ const (
IPV6_RECVRTHDR
=
0x38
IPV6_RECVTCLASS
=
0x42
IPV6_ROUTER_ALERT
=
0x16
IPV6_ROUTER_ALERT_ISOLATE
=
0x1e
IPV6_RTHDR
=
0x39
IPV6_RTHDRDSTOPTS
=
0x37
IPV6_RTHDR_LOOSE
=
0x0
...
...
vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_11.go
View file @
6e5a2b5e
...
...
@@ -377,16 +377,6 @@ func Munlockall() (err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func
ptrace
(
request
int
,
pid
int
,
addr
uintptr
,
data
uintptr
)
(
err
error
)
{
_
,
_
,
e1
:=
Syscall6
(
SYS_PTRACE
,
uintptr
(
request
),
uintptr
(
pid
),
uintptr
(
addr
),
uintptr
(
data
),
0
,
0
)
if
e1
!=
0
{
err
=
errnoErr
(
e1
)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func
getattrlist
(
path
*
byte
,
list
unsafe
.
Pointer
,
buf
unsafe
.
Pointer
,
size
uintptr
,
options
int
)
(
err
error
)
{
_
,
_
,
e1
:=
Syscall6
(
SYS_GETATTRLIST
,
uintptr
(
unsafe
.
Pointer
(
path
)),
uintptr
(
list
),
uintptr
(
buf
),
uintptr
(
size
),
uintptr
(
options
),
0
)
if
e1
!=
0
{
...
...
@@ -1691,6 +1681,16 @@ func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func
ptrace
(
request
int
,
pid
int
,
addr
uintptr
,
data
uintptr
)
(
err
error
)
{
_
,
_
,
e1
:=
Syscall6
(
SYS_PTRACE
,
uintptr
(
request
),
uintptr
(
pid
),
uintptr
(
addr
),
uintptr
(
data
),
0
,
0
)
if
e1
!=
0
{
err
=
errnoErr
(
e1
)
}
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func
gettimeofday
(
tp
*
Timeval
)
(
sec
int32
,
usec
int32
,
err
error
)
{
r0
,
r1
,
e1
:=
RawSyscall
(
SYS_GETTIMEOFDAY
,
uintptr
(
unsafe
.
Pointer
(
tp
)),
0
,
0
)
sec
=
int32
(
r0
)
...
...
vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go
View file @
6e5a2b5e
...
...
@@ -527,21 +527,6 @@ func libc_munlockall_trampoline()
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func
ptrace
(
request
int
,
pid
int
,
addr
uintptr
,
data
uintptr
)
(
err
error
)
{
_
,
_
,
e1
:=
syscall_syscall6
(
funcPC
(
libc_ptrace_trampoline
),
uintptr
(
request
),
uintptr
(
pid
),
uintptr
(
addr
),
uintptr
(
data
),
0
,
0
)
if
e1
!=
0
{
err
=
errnoErr
(
e1
)
}
return
}
func
libc_ptrace_trampoline
()
//go:linkname libc_ptrace libc_ptrace
//go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func
getattrlist
(
path
*
byte
,
list
unsafe
.
Pointer
,
buf
unsafe
.
Pointer
,
size
uintptr
,
options
int
)
(
err
error
)
{
_
,
_
,
e1
:=
syscall_syscall6
(
funcPC
(
libc_getattrlist_trampoline
),
uintptr
(
unsafe
.
Pointer
(
path
)),
uintptr
(
list
),
uintptr
(
buf
),
uintptr
(
size
),
uintptr
(
options
),
0
)
if
e1
!=
0
{
...
...
@@ -2341,6 +2326,21 @@ func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func
ptrace
(
request
int
,
pid
int
,
addr
uintptr
,
data
uintptr
)
(
err
error
)
{
_
,
_
,
e1
:=
syscall_syscall6
(
funcPC
(
libc_ptrace_trampoline
),
uintptr
(
request
),
uintptr
(
pid
),
uintptr
(
addr
),
uintptr
(
data
),
0
,
0
)
if
e1
!=
0
{
err
=
errnoErr
(
e1
)
}
return
}
func
libc_ptrace_trampoline
()
//go:linkname libc_ptrace libc_ptrace
//go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func
gettimeofday
(
tp
*
Timeval
)
(
sec
int32
,
usec
int32
,
err
error
)
{
r0
,
r1
,
e1
:=
syscall_rawSyscall
(
funcPC
(
libc_gettimeofday_trampoline
),
uintptr
(
unsafe
.
Pointer
(
tp
)),
0
,
0
)
sec
=
int32
(
r0
)
...
...
vendor/golang.org/x/sys/unix/zsyscall_darwin_386.s
View file @
6e5a2b5e
...
...
@@ -64,8 +64,6 @@ TEXT ·libc_munlock_trampoline(SB),NOSPLIT,$0-0
JMP libc_munlock(SB)
TEXT ·libc_munlockall_trampoline(SB),NOSPLIT,$0-0
JMP libc_munlockall(SB)
TEXT ·libc_ptrace_trampoline(SB),NOSPLIT,$0-0
JMP libc_ptrace(SB)
TEXT ·libc_getattrlist_trampoline(SB),NOSPLIT,$0-0
JMP libc_getattrlist(SB)
TEXT ·libc_pipe_trampoline(SB),NOSPLIT,$0-0
...
...
@@ -264,6 +262,8 @@ TEXT ·libc_mmap_trampoline(SB),NOSPLIT,$0-0
JMP libc_mmap(SB)
TEXT ·libc_munmap_trampoline(SB),NOSPLIT,$0-0
JMP libc_munmap(SB)
TEXT ·libc_ptrace_trampoline(SB),NOSPLIT,$0-0
JMP libc_ptrace(SB)
TEXT ·libc_gettimeofday_trampoline(SB),NOSPLIT,$0-0
JMP libc_gettimeofday(SB)
TEXT ·libc_fstat64_trampoline(SB),NOSPLIT,$0-0
...
...
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
View file @
6e5a2b5e
...
...
@@ -527,21 +527,6 @@ func libc_munlockall_trampoline()
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func
ptrace
(
request
int
,
pid
int
,
addr
uintptr
,
data
uintptr
)
(
err
error
)
{
_
,
_
,
e1
:=
syscall_syscall6
(
funcPC
(
libc_ptrace_trampoline
),
uintptr
(
request
),
uintptr
(
pid
),
uintptr
(
addr
),
uintptr
(
data
),
0
,
0
)
if
e1
!=
0
{
err
=
errnoErr
(
e1
)
}
return
}
func
libc_ptrace_trampoline
()
//go:linkname libc_ptrace libc_ptrace
//go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func
getattrlist
(
path
*
byte
,
list
unsafe
.
Pointer
,
buf
unsafe
.
Pointer
,
size
uintptr
,
options
int
)
(
err
error
)
{
_
,
_
,
e1
:=
syscall_syscall6
(
funcPC
(
libc_getattrlist_trampoline
),
uintptr
(
unsafe
.
Pointer
(
path
)),
uintptr
(
list
),
uintptr
(
buf
),
uintptr
(
size
),
uintptr
(
options
),
0
)
if
e1
!=
0
{
...
...
@@ -2356,6 +2341,21 @@ func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func
ptrace
(
request
int
,
pid
int
,
addr
uintptr
,
data
uintptr
)
(
err
error
)
{
_
,
_
,
e1
:=
syscall_syscall6
(
funcPC
(
libc_ptrace_trampoline
),
uintptr
(
request
),
uintptr
(
pid
),
uintptr
(
addr
),
uintptr
(
data
),
0
,
0
)
if
e1
!=
0
{
err
=
errnoErr
(
e1
)
}
return
}
func
libc_ptrace_trampoline
()
//go:linkname libc_ptrace libc_ptrace
//go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func
gettimeofday
(
tp
*
Timeval
)
(
sec
int64
,
usec
int32
,
err
error
)
{
r0
,
r1
,
e1
:=
syscall_rawSyscall
(
funcPC
(
libc_gettimeofday_trampoline
),
uintptr
(
unsafe
.
Pointer
(
tp
)),
0
,
0
)
sec
=
int64
(
r0
)
...
...
vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s
View file @
6e5a2b5e
...
...
@@ -64,8 +64,6 @@ TEXT ·libc_munlock_trampoline(SB),NOSPLIT,$0-0
JMP libc_munlock(SB)
TEXT ·libc_munlockall_trampoline(SB),NOSPLIT,$0-0
JMP libc_munlockall(SB)
TEXT ·libc_ptrace_trampoline(SB),NOSPLIT,$0-0
JMP libc_ptrace(SB)
TEXT ·libc_getattrlist_trampoline(SB),NOSPLIT,$0-0
JMP libc_getattrlist(SB)
TEXT ·libc_pipe_trampoline(SB),NOSPLIT,$0-0
...
...
@@ -266,6 +264,8 @@ TEXT ·libc_mmap_trampoline(SB),NOSPLIT,$0-0
JMP libc_mmap(SB)
TEXT ·libc_munmap_trampoline(SB),NOSPLIT,$0-0
JMP libc_munmap(SB)
TEXT ·libc_ptrace_trampoline(SB),NOSPLIT,$0-0
JMP libc_ptrace(SB)
TEXT ·libc_gettimeofday_trampoline(SB),NOSPLIT,$0-0
JMP libc_gettimeofday(SB)
TEXT ·libc_fstat64_trampoline(SB),NOSPLIT,$0-0
...
...
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go
View file @
6e5a2b5e
...
...
@@ -527,21 +527,6 @@ func libc_munlockall_trampoline()
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func
ptrace
(
request
int
,
pid
int
,
addr
uintptr
,
data
uintptr
)
(
err
error
)
{
_
,
_
,
e1
:=
syscall_syscall6
(
funcPC
(
libc_ptrace_trampoline
),
uintptr
(
request
),
uintptr
(
pid
),
uintptr
(
addr
),
uintptr
(
data
),
0
,
0
)
if
e1
!=
0
{
err
=
errnoErr
(
e1
)
}
return
}
func
libc_ptrace_trampoline
()
//go:linkname libc_ptrace libc_ptrace
//go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func
getattrlist
(
path
*
byte
,
list
unsafe
.
Pointer
,
buf
unsafe
.
Pointer
,
size
uintptr
,
options
int
)
(
err
error
)
{
_
,
_
,
e1
:=
syscall_syscall6
(
funcPC
(
libc_getattrlist_trampoline
),
uintptr
(
unsafe
.
Pointer
(
path
)),
uintptr
(
list
),
uintptr
(
buf
),
uintptr
(
size
),
uintptr
(
options
),
0
)
if
e1
!=
0
{
...
...
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.s
View file @
6e5a2b5e
...
...
@@ -64,8 +64,6 @@ TEXT ·libc_munlock_trampoline(SB),NOSPLIT,$0-0
JMP libc_munlock(SB)
TEXT ·libc_munlockall_trampoline(SB),NOSPLIT,$0-0
JMP libc_munlockall(SB)
TEXT ·libc_ptrace_trampoline(SB),NOSPLIT,$0-0
JMP libc_ptrace(SB)
TEXT ·libc_getattrlist_trampoline(SB),NOSPLIT,$0-0
JMP libc_getattrlist(SB)
TEXT ·libc_pipe_trampoline(SB),NOSPLIT,$0-0
...
...
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
View file @
6e5a2b5e
...
...
@@ -527,21 +527,6 @@ func libc_munlockall_trampoline()
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func
ptrace
(
request
int
,
pid
int
,
addr
uintptr
,
data
uintptr
)
(
err
error
)
{
_
,
_
,
e1
:=
syscall_syscall6
(
funcPC
(
libc_ptrace_trampoline
),
uintptr
(
request
),
uintptr
(
pid
),
uintptr
(
addr
),
uintptr
(
data
),
0
,
0
)
if
e1
!=
0
{
err
=
errnoErr
(
e1
)
}
return
}
func
libc_ptrace_trampoline
()
//go:linkname libc_ptrace libc_ptrace
//go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib"
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func
getattrlist
(
path