github.com/criyle/go-sandbox@v0.10.3/ptracer/context_other.go (about) 1 //go:build !linux 2 3 package ptracer 4 5 // Context empty structure filler for other OS 6 type Context struct { 7 Pid int 8 } 9 10 func (c *Context) SyscallNo() uint { 11 return 0 12 } 13 14 func (c *Context) Arg0() uint { 15 return 0 16 } 17 18 func (c *Context) Arg1() uint { 19 return 0 20 } 21 22 func (c *Context) Arg2() uint { 23 return 0 24 } 25 26 func (c *Context) Arg3() uint { 27 return 0 28 } 29 30 func (c *Context) Arg4() uint { 31 return 0 32 } 33 34 func (c *Context) Arg5() uint { 35 return 0 36 } 37 38 func (c *Context) SetReturnValue(retval int) { 39 40 } 41 42 func (c *Context) GetString(addr uintptr) string { 43 return "" 44 }