Rich Felker
892cafff66
greatly improve freopen behavior
...
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.
2012-10-24 21:16:06 -04:00
..
2012-07-11 04:22:13 -04:00
2012-09-06 23:34:10 -04:00
2011-03-20 00:16:43 -04:00
2012-09-29 01:14:07 -04:00
2012-05-24 12:21:34 -04:00
2011-03-20 00:16:43 -04:00
2011-03-20 00:16:43 -04:00
2012-09-24 22:39:08 -04:00
2011-02-12 00:22:29 -05:00
2011-04-20 21:05:10 -04:00
2012-10-24 21:16:06 -04:00
2011-03-20 00:16:43 -04:00
2011-03-20 00:16:43 -04:00
2011-03-20 00:16:43 -04:00
2011-03-20 00:16:43 -04:00
2011-03-20 00:16:43 -04:00
2012-06-19 22:22:16 -04:00
2012-06-19 22:24:15 -04:00
2011-09-21 20:11:10 -04:00
2012-03-01 22:08:05 -05:00
2011-04-21 21:52:41 -04:00
2011-04-21 21:52:41 -04:00
2011-04-21 21:52:41 -04:00
2011-03-20 00:16:43 -04:00
2011-02-12 00:22:29 -05:00
2012-06-19 22:31:19 -04:00
2011-02-12 00:22:29 -05:00
2011-03-20 00:16:43 -04:00
2011-04-21 21:52:41 -04:00
2011-04-21 21:52:41 -04:00
2011-04-21 21:52:41 -04:00
2011-03-20 00:16:43 -04:00
2011-04-21 21:52:41 -04:00
2011-02-12 00:22:29 -05:00
2011-03-20 00:16:43 -04:00
2011-03-20 00:16:43 -04:00
2011-03-20 00:16:43 -04:00
2011-04-06 20:32:53 -04:00
2011-04-06 20:32:53 -04:00
2011-04-17 11:43:03 -04:00
2012-10-18 15:58:23 -04:00
2011-03-20 00:16:43 -04:00
2011-09-21 20:11:10 -04:00
2012-09-09 16:33:47 -04:00
2011-09-21 20:11:10 -04:00
2012-09-09 16:33:47 -04:00
2011-04-17 11:43:03 -04:00
2012-09-06 22:44:55 -04:00
2012-09-06 22:44:55 -04:00
2011-04-17 11:43:03 -04:00
2011-03-20 00:16:43 -04:00
2011-03-20 00:16:43 -04:00
2011-07-29 22:59:44 -04:00
2011-07-29 22:59:44 -04:00
2011-07-29 22:59:44 -04:00
2011-09-26 00:59:28 -04:00
2011-02-12 00:22:29 -05:00
2011-07-29 22:59:44 -04:00
2011-07-29 22:59:44 -04:00
2011-07-29 22:59:44 -04:00
2011-07-29 22:59:44 -04:00
2011-03-20 00:16:43 -04:00
2011-07-29 22:59:44 -04:00
2011-07-30 08:19:31 -04:00
2011-02-12 00:22:29 -05:00
2011-03-20 00:16:43 -04:00
2011-03-20 00:16:43 -04:00
2011-04-17 16:32:15 -04:00
2011-02-12 00:22:29 -05:00
2011-02-12 00:22:29 -05:00
2011-09-21 20:11:10 -04:00
2012-09-06 20:21:13 -04:00
2011-02-12 00:22:29 -05:00
2011-04-03 19:18:43 -04:00
2011-03-20 00:16:43 -04:00
2011-03-20 00:16:43 -04:00
2011-04-01 21:10:01 -04:00
2011-04-17 11:43:03 -04:00
2011-04-17 11:43:03 -04:00