Message98663
I see that a complete errno based solution would get messy. To avoid
interfering with EAGAIN special cases, this would be needed:
#if defined(EBADF)
#define ERRNO_EBADF(x) ((x) == EBADF)
#else
#define ERRNO_EBADF(x) 0
#endif
Then, additional checks would need to be added to get_line,
getline_via_fgets and a couple of other places.
I think the right thing is to add a field f_modeflags to the file
object, to be initialized on creation. Or use f->readable, f->writable
like py3k. Thoughts? |
|
Date |
User |
Action |
Args |
2010-02-01 14:15:59 | skrah | set | recipients:
+ skrah, pitrou, nneonneo, benjamin.peterson, pmpp |
2010-02-01 14:15:58 | skrah | set | messageid: <1265033758.98.0.109449365664.issue5677@psf.upfronthosting.co.za> |
2010-02-01 14:15:57 | skrah | link | issue5677 messages |
2010-02-01 14:15:57 | skrah | create | |
|