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// +build linux 6 7package runtime 8 9func sbrk0() uintptr 10 11func gettid() _pid_t { 12 return _pid_t(syscall(_SYS_gettid, 0, 0, 0, 0, 0, 0)) 13} 14 15func 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} 18