Skip to content

Commit acee51a

Browse files
committed
add BeforeExec and AfterExec symbols to stubbed function
Signed-off-by: leongross <[email protected]>
1 parent 5f163a1 commit acee51a

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

src/runtime/proc.go

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package runtime
2+
3+
// Called from syscall package before Exec.
4+
//
5+
//go:linkname syscall_runtime_BeforeExec syscall.runtime_BeforeExec
6+
func syscall_runtime_BeforeExec() {}
7+
8+
// Called from syscall package after Exec.
9+
//
10+
//go:linkname syscall_runtime_AfterExec syscall.runtime_AfterExec
11+
func syscall_runtime_AfterExec() {}

src/syscall/exec_unix.go

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
//go:build unix
2+
3+
package syscall
4+
5+
// Implemented in runtime package.
6+
func runtime_BeforeExec()
7+
func runtime_AfterExec()

src/syscall/syscall.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"errors"
55
"sync/atomic"
66

7-
"github.com/tinygo-org/tinygo/src/internal/bytealg"
7+
"internal/bytealg"
88
)
99

1010
const (

0 commit comments

Comments
 (0)