What's the analogue in Kotlin cinterop of the unary & operation in C which gets the address of the data? For example, in C if a process has been forked the parent process waits for the child process to finish by using waitpid
int status = 0;
waitpid(pid, &status, WCONTINUED | WTRUNCATED);
Kotlin has access to waitpid via the platform.posix library. However, in Kotlin, neither
var status:Int = 0;
waitpid(pid, status, WCONTINUED or WTRUNCATED);
nor
var status:Int = 0;
waitpid(pid, status.ptr, WCONTINUED or WTRUNCATED);
works.