The patches are looking good for me but I wonder what's the plan for functions that are implemented differently in msvcrt and musl? I guess the plan is to leave separate implementation if it's completely different. What about functions that only differ in how errno is set or math_error is called?