15.2.3 openfd

bool openfd(int fd, bool closefd)

Sets the data source of the stream to the specified file descriptor fd. If closefd is false, the underlying data source is not closed before changing to the new data source.