O_NDELAY
if (result & O_NDELAY)
if ((fd = open(device, O_RDONLY|O_NDELAY)) < 0) {
#define O_NONBLOCK O_NDELAY
flags |= O_NDELAY;
#ifdef O_NDELAY
#define O_NONBLOCK O_NDELAY