libgo/go/runtime/stubs_linux.go
raw| 1 | // Copyright 2017 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | //go:build linux |
| 6 | |
| 7 | package runtime |
| 8 | |
| 9 | func sbrk0() uintptr |
| 10 | |
| 11 | func gettid() _pid_t { |
| 12 | return _pid_t(syscall(_SYS_gettid, 0, 0, 0, 0, 0, 0)) |
| 13 | } |
| 14 | |
| 15 | func tgkill(pid _pid_t, tid _pid_t, sig uint32) uint32 { |
| 16 | return uint32(syscall(_SYS_tgkill, uintptr(pid), uintptr(tid), uintptr(sig), 0, 0, 0)) |
| 17 | } |