Function FD.fileNo

Obtain the underlying OS handle

int fileNo () pure nothrow @property @nogc @safe;

This returns the underlying OS handle for use directly with OS calls.

Warning

Do not use this function to directly call the close system call. Doing so may lead to quite difficult to debug problems across your program. If another part of the program gets the same FD number, it can be quite difficult to find out what went wrong.