jilles a3c80349e7 libc/stdio: Fail fdopen() on an execute-only fd.
An execute-only fd (opened with O_EXEC) allows neither read() nor write()
and is therefore incompatible with all stdio modes. Therefore, the [EINVAL]
error applies.

Also adjust the similar check in freopen() with a NULL path, even though
this checks an fd which is already from a FILE.
2014-04-21 17:40:23 +00:00
..
2013-01-01 18:29:25 +00:00
2013-12-25 19:38:16 +00:00
2014-01-21 21:13:13 +00:00
2014-02-01 09:27:57 +00:00
2013-05-30 08:02:00 +00:00
2013-05-12 22:22:12 +00:00
2014-01-26 23:40:31 +00:00
2012-10-18 15:39:29 +00:00
2013-05-12 22:22:12 +00:00
2014-03-22 17:28:14 +00:00
2014-04-05 19:48:19 +00:00