about summary refs log tree commit diff
path: root/src/unistd/dup3.c
Commit message (Collapse)AuthorAgeFilesLines
* greatly improve freopen behaviorRich Felker2012-10-241-2/+13
| | | | | | | | | | | | | 1. don't open /dev/null just as a basis to copy flags; use shared __fmodeflags function to get the right file flags for the mode. 2. handle the case (probably invalid, but whatever) case where the original stream's file descriptor was closed; previously, the logic re-closed it. 3. accept the "e" mode flag for close-on-exec; update dup3 to fallback to using dup2 so we can simply call __dup3 instead of putting fallback logic in freopen itself.
* move accept4, dup3, and pipe2 to non-linux-specific locationsRich Felker2012-09-291-0/+10
these interfaces have been adopted by the Austin Group for inclusion in the next version of POSIX.