• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Program mismatch should panic because the syscall being requested
2// never returns consistent results.
3package main
4
5import (
6	"fmt"
7	"syscall"
8
9	"kernel.org/pub/linux/libs/security/libcap/psx"
10)
11
12func main() {
13	tid, _, err := psx.Syscall3(syscall.SYS_GETTID, 0, 0, 0)
14	fmt.Printf("gettid() -> %d: %v\n", tid, err)
15}
16