Debian Codegraph @

go/mismatch.go

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