This is part of the See [POSIX Roadmap for LTSv3](https://github.com/zephyrproject-rtos/zephyr/issues/51211) (RFC #51211). `dup2()` is required as part of `POSIX_FD_MGMT` [Subprofiling Option Group](https://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_subprofiles.html). For more information, please refer to https://pubs.opengroup.org/onlinepubs/9699919799/functions/dup2.html