public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [BUG] settimeofday(2) succeeds for microsecond value more than USEC_PER_SEC and for negative value
@ 2003-04-11  5:12 Aniruddha M Marathe
  2003-04-11  6:26 ` george anzinger
  0 siblings, 1 reply; 3+ messages in thread
From: Aniruddha M Marathe @ 2003-04-11  5:12 UTC (permalink / raw)
  To: george; +Cc: linux-kernel, Chandrashekhar RS

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-04-11 13:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-11  5:12 [BUG] settimeofday(2) succeeds for microsecond value more than USEC_PER_SEC and for negative value Aniruddha M Marathe
2003-04-11  6:26 ` george anzinger
2003-04-11 13:33   ` [BUG] settimeofday(2) succeeds for microsecond value more thanUSEC_PER_SEC " Eric Piel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox