746b752b8e
This makes select.poll() interface fully compatible with CpYthon. Also, make their numeric values of these options compatible with Linux (and by extension, with iBCS2 standard, which jopefully means compatibility with other Unices too).
9 lines
267 B
C
9 lines
267 B
C
#define MP_IOCTL_POLL (0x100 | 1)
|
|
|
|
// These values are compatible with Linux, which are in turn
|
|
// compatible with iBCS2 spec.
|
|
#define MP_IOCTL_POLL_RD (0x0001)
|
|
#define MP_IOCTL_POLL_WR (0x0004)
|
|
#define MP_IOCTL_POLL_ERR (0x0008)
|
|
#define MP_IOCTL_POLL_HUP (0x0010)
|