https://godoc.org/golang.org/x/sys/unix#IoctlSetInt

func IoctlSetInt(fd int <https://godoc.org/builtin#int>, req uint 
<https://godoc.org/builtin#uint>, value int <https://godoc.org/builtin#int>) 
error <https://godoc.org/builtin#error>


>From the function definition and function description I would expect that 
the last parameter "value" can be a regular int value.
But it actually requires an uintptr of an unsafe.Pointer.  E.g. 
int(uintptr(unsafe.Pointer(&i))
Or am I wrong? 
Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to