uvw 3.1.0
|
Helper functions. More...
#include <fs.h>
Static Public Member Functions | |
static os_file_descriptor | handle (file_handle file) noexcept |
Gets the OS dependent handle. | |
static file_handle | open (os_file_descriptor descriptor) noexcept |
Gets the file descriptor. | |
|
staticnoexcept |
Gets the OS dependent handle.
For a file descriptor in the C runtime, get the OS-dependent handle. On UNIX, returns the file descriptor as-is. On Windows, this calls a system function.
Note that the return value is still owned by the C runtime, any attempts to close it or to use it after closing the file descriptor may lead to malfunction.
|
staticnoexcept |
Gets the file descriptor.
For a OS-dependent handle, get the file descriptor in the C runtime. On UNIX, returns the file descriptor as-is. On Windows, this calls a system function.
Note that the return value is still owned by the C runtime, any attempts to close it or to use it after closing the handle may lead to malfunction.