Extracted from Pike v8.0 release 276 as of 2016-07-30.
Method Stdio.Fd()->take_fd()
Method
take_fd
void take_fd(int fd)
Description
Rehooks the given file descriptor number to be associated with
this object. As opposed to using open with a file descriptor
number, it will be closed by this object upon destruct or when
close is called.