blob: bbcf6eb78ef03b19ffbacc7c9a8aaedf3609caae [file] [log] [blame] [edit]
// Program mismatch should panic because the syscall being requested
// never returns consistent results.
package main
import (
"fmt"
"syscall"
"kernel.org/pub/linux/libs/security/libcap/psx"
)
func main() {
tid, _, err := psx.Syscall3(syscall.SYS_GETTID, 0, 0, 0)
fmt.Printf("gettid() -> %d: %v\n", tid, err)
}