crystal
crystal copied to clipboard
Replace some Microsoft C runtime funs with Win32 equivalents
Ideally we could replace the type of fd
on Windows entirely, similar to how Socket#fd
returns a LibC::HANDLE
, in which case we could also drop _close
/ _dup2
/ _get_osfhandle
/ _open_osfhandle
. This isn't possible since IO::FileDescriptor#fd
is public.