syscall: implement Exit call on unix

Этот коммит содержится в:
Ayke van Laethem 2019-05-26 19:35:12 +02:00 коммит произвёл Ron Evans
родитель 94b8214529
коммит 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)
}