lkml.org 
[lkml]   [2003]   [Apr]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Subject[BUG] settimeofday(2) succeeds for microsecond value more than USEC_PER_SEC and for negative value
Date
From
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/

\
 
 \ /
  Last update: 2005-03-22 13:34    [W:0.218 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site