equal
deleted
inserted
replaced
228 return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen)) |
228 return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen)) |
229 } |
229 } |
230 |
230 |
231 func PtraceAttach(pid int) (err error) { return ptrace(PT_ATTACH, pid, 0, 0) } |
231 func PtraceAttach(pid int) (err error) { return ptrace(PT_ATTACH, pid, 0, 0) } |
232 func PtraceDetach(pid int) (err error) { return ptrace(PT_DETACH, pid, 0, 0) } |
232 func PtraceDetach(pid int) (err error) { return ptrace(PT_DETACH, pid, 0, 0) } |
|
233 func PtraceDenyAttach() (err error) { return ptrace(PT_DENY_ATTACH, 0, 0, 0) } |
233 |
234 |
234 //sysnb pipe(p *[2]int32) (err error) |
235 //sysnb pipe(p *[2]int32) (err error) |
235 |
236 |
236 func Pipe(p []int) (err error) { |
237 func Pipe(p []int) (err error) { |
237 if len(p) != 2 { |
238 if len(p) != 2 { |