pipe2() and dup3() were standardized by POSIX 2024 and are already supported on most platforms (Linux, BSD) outside of macOS.
We should add new overloads of the Swift System functions which accept the flags (like O_CLOEXEC). For Apple platforms, which don't support these calls, we could compile them out for now, throw an error, or add unavailable annotations.