Messages in this thread | | | Subject | [BUG] settimeofday(2) succeeds for microsecond value more than USEC_PER_SEC and for negative value | Date | Fri, 11 Apr 2003 10:42:04 +0530 | From | "Aniruddha M Marathe" <> |
| |
Settimeofday(2) should return EINVAL in case where tv.tv_usec parameter is more than USEC_PER_SEC (more than 10^6 ) or for negative values of tv.tv_usec. It returns 0 (success) instead.
Clock_settimeofday(2) (kernel/posix-timers.c) also uses do_sys_settimeofday() and faces the Same problem.
I think this is a bug. If you confirm, I will send a patch.
Regards, Aniruddha Marathe WIPRO Technologies, India - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |