blob: bbcf6eb78ef03b19ffbacc7c9a8aaedf3609caae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// 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)
}
|