Home | History | Annotate | Download | only in syscall

Lines Matching refs:Pid

252 //sys	wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error)
254 func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, err error) {
256 wpid, err = wait4(pid, &status, options, rusage)
349 Pid uint32
357 sa.raw.Pid = sa.Pid
369 sa.Pid = pp.Pid
612 //sys ptrace(request int, pid int, addr uintptr, data uintptr) (err error)
614 func ptracePeek(req int, pid int, addr uintptr, out []byte) (count int, err error) {
630 err = ptrace(req, pid, addr-addr%sizeofPtr, uintptr(unsafe.Pointer(&buf[0])))
642 err = ptrace(req, pid, addr+uintptr(n), uintptr(unsafe.Pointer(&buf[0])))
654 pid int, addr uintptr, out []byte) (count int, err error) {
655 return ptracePeek(PTRACE_PEEKTEXT, pid, addr, out)
658 func PtracePeekData(pid int, addr uintptr, out []byte) (count int, err error) {
659 return ptracePeek(PTRACE_PEEKDATA, pid, addr, out)
662 func ptracePoke(pokeReq int, peekReq int, pid int, addr uintptr, data []byte) (count int, err error) {
670 err = ptrace(peekReq, pid, addr-addr%sizeofPtr, uintptr(unsafe.Pointer(&buf[0])))
676 err = ptrace(pokeReq, pid, addr-addr%sizeofPtr, word)
686 err = ptrace(pokeReq, pid, addr+uintptr(n), word)
697 err = ptrace(peekReq, pid, addr+uintptr(n), uintptr(unsafe.Pointer(&buf[0])))
703 err = ptrace(pokeReq, pid, addr+uintptr(n), word)
713 func PtracePokeText(pid int, addr uintptr, data []byte) (count int, err error) {
714 return ptracePoke(PTRACE_POKETEXT, PTRACE_PEEKTEXT, pid, addr, data)
717 func PtracePokeData(pid int, addr uintptr, data []byte) (count int, err error) {
718 return ptracePoke(PTRACE_POKEDATA, PTRACE_PEEKDATA, pid, addr, data)
721 func PtraceGetRegs(pid int, regsout *PtraceRegs) (err error) {
722 return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
725 func PtraceSetRegs(pid int, regs *PtraceRegs) (err error) {
726 return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
729 func PtraceSetOptions(pid int, options int) (err error) {
730 return ptrace(PTRACE_SETOPTIONS, pid, 0, uintptr(options))
733 func PtraceGetEventMsg(pid int) (msg uint, err error) {
735 err = ptrace(PTRACE_GETEVENTMSG, pid, 0, uintptr(unsafe.Pointer(&data)))
740 func PtraceCont(pid int, signal int) (err error) {
741 return ptrace(PTRACE_CONT, pid, 0, uintptr(signal))
744 func PtraceSyscall(pid int, signal int) (err error) {
745 return ptrace(PTRACE_SYSCALL, pid, 0, uintptr(signal))
748 func PtraceSingleStep(pid int) (err error) { return ptrace(PTRACE_SINGLESTEP, pid, 0, 0) }
750 func PtraceAttach(pid int) (err error) { return ptrace(PTRACE_ATTACH, pid, 0, 0) }
752 func PtraceDetach(pid int) (err error) { return ptrace(PTRACE_DETACH, pid, 0, 0) }
827 //sysnb Getpgid(pid int) (pgid int, err error)
829 func Getpgrp() (pid int) {
830 pid, _ = Getpgid(0)
834 //sysnb Getpid() (pid int)
843 //sysnb Kill(pid int, sig Signal) (err error)
851 //sysnb prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) = SYS_PRLIMIT64
857 //sysnb Setpgid(pid int, pgid int) (err error)
858 //sysnb Setsid() (pid int, err error)