mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-04 11:07:46 +00:00
syscall: implement Exit call on unix
This commit is contained in:
committed by
Ron Evans
parent
94b8214529
commit
0f2dcba7b3
@@ -18,6 +18,9 @@ func malloc(size uintptr) unsafe.Pointer
|
||||
//go:export abort
|
||||
func abort()
|
||||
|
||||
//go:export exit
|
||||
func exit(code int)
|
||||
|
||||
//go:export clock_gettime
|
||||
func clock_gettime(clk_id uint, ts *timespec)
|
||||
|
||||
@@ -75,3 +78,8 @@ func monotime() uint64 {
|
||||
func ticks() timeUnit {
|
||||
return timeUnit(monotime())
|
||||
}
|
||||
|
||||
//go:linkname syscall_Exit syscall.Exit
|
||||
func syscall_Exit(code int) {
|
||||
exit(code)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user