FD.fileNo

Obtain the underlying OS handle

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.

struct FD
@property pure nothrow @safe @nogc
int
fileNo
()

Meta