IS_CHAR_DEVICE is path a character device
e.g. NUL, /dev/null false if file does not exist
Contents
inputs
- file: path to check
- backend: backend to use
Outputs
- i: true if path is a character device
- b: backend used
Windows: Console handles CONIN$, CONOUT$, STDIN, STDOUT, STDERR are not detected. Only NUL is detected. in our C-API-based Ffilesystem library, we use GetFileType() with CreateFile() to detect those handles successfully, but they don't work here.
Ref: https://learn.microsoft.com/en-us/windows/console/console-handles