syscall: implement Exit call on unix
Этот коммит содержится в:
родитель
94b8214529
коммит
0f2dcba7b3
1 изменённых файлов: 8 добавлений и 0 удалений
|
@ -18,6 +18,9 @@ func malloc(size uintptr) unsafe.Pointer
|
||||||
//go:export abort
|
//go:export abort
|
||||||
func abort()
|
func abort()
|
||||||
|
|
||||||
|
//go:export exit
|
||||||
|
func exit(code int)
|
||||||
|
|
||||||
//go:export clock_gettime
|
//go:export clock_gettime
|
||||||
func clock_gettime(clk_id uint, ts *timespec)
|
func clock_gettime(clk_id uint, ts *timespec)
|
||||||
|
|
||||||
|
@ -75,3 +78,8 @@ func monotime() uint64 {
|
||||||
func ticks() timeUnit {
|
func ticks() timeUnit {
|
||||||
return timeUnit(monotime())
|
return timeUnit(monotime())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//go:linkname syscall_Exit syscall.Exit
|
||||||
|
func syscall_Exit(code int) {
|
||||||
|
exit(code)
|
||||||
|
}
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче