Message98741
> An errno+ferror approach works except for two cases:
>
> (1) MS fgets() does not consider reading from a write-only stream
> an error. While annoying, I think this is standard conforming.
>
> (2) OpenSolaris sets errno unreliably after getc.
>
>
> I do not know how to get around those without using OS specifics.
Ok, then perhaps it's better to have some internal {readable, writable}
flags based on the original mode string. |
|
Date |
User |
Action |
Args |
2010-02-02 14:51:51 | pitrou | set | recipients:
+ pitrou, nneonneo, benjamin.peterson, skrah, pmpp |
2010-02-02 14:51:49 | pitrou | link | issue5677 messages |
2010-02-02 14:51:49 | pitrou | create | |
|