Skip to content

Commit a688dec

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

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

src/runtime/proc.go

Lines changed: 11 additions & 0 deletions
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

Lines changed: 7 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package syscall
33
import (
44
"errors"
55

6-
"github.com/tinygo-org/tinygo/src/internal/bytealg"
6+
"internal/bytealg"
77
)
88

99
const (

0 commit comments

Comments
 (0)