Commit 7d189538 by Ian Lance Taylor

syscall: Add Gettid on GNU/Linux systems.

From-SVN: r183775
parent e15999a5
...@@ -195,9 +195,10 @@ func PtraceDetach(pid int) (err error) { return ptrace(PTRACE_DETACH, pid, 0, 0) ...@@ -195,9 +195,10 @@ func PtraceDetach(pid int) (err error) { return ptrace(PTRACE_DETACH, pid, 0, 0)
// //sys Fstatfs(fd int, buf *Statfs_t) (err error) // //sys Fstatfs(fd int, buf *Statfs_t) (err error)
// //fstatfs(fd int, buf *Statfs_t) int // //fstatfs(fd int, buf *Statfs_t) int
// FIXME: Only available as a syscall. func Gettid() (tid int) {
// //sysnb Gettid() (tid int) r1, _, _ := Syscall(SYS_GETTID, 0, 0, 0)
// //gettid() Pid_t return int(r1)
}
// FIXME: mksysinfo linux_dirent // FIXME: mksysinfo linux_dirent
// Or just abandon this function. // Or just abandon this function.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment