Win32 and posix compatibility