vendor/golang.org/x/sys/unix/syscall_darwin.go
changeset 272 e9ffa471eeb3
parent 262 8d3354485fc3
child 274 cea6d2f4f728
equal deleted inserted replaced
271:c8b8b7cc8896 272:e9ffa471eeb3
   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 {