Re: [PATCHv6 0/7] system time changes notification

From: Alan Cox
Date: Fri Nov 12 2010 - 04:27:31 EST


> #define CLOCK_FD 0x80000000
> fd = open("/dev/clock/realtime", O_RDWR);
> poll(fd);
> clock_gettime(CLOCK_FD|fd, &ts);
> [...]

Oh please. Can we not manage to vaguely follow the direction of other
syscalls and instead of magic flag hacks just add

fclock_gettime
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/