Gets the open mode for consoles, devices, FIFOs, and files.
#include <nks/fsio.h> int NXIoGetOpenMode ( NXHandle_t handle, NXMode_t *mode);
(IN) Specifies a handle (or descriptor) from a previously opened console, device, FIFO, or file.
(OUT) Points to the open mode of the object. See NKS Open Modes.
If successful, returns 0. Otherwise, returns the following error code:
NXIoGetOpenMode returns the mode specified at the time the object was opened or, in the case of FIFOs, the current mode in respect to blocking or non-blocking may be different than at time of open.