Re: patch to fix set_itimer() behaviour in boundary cases

2005-01-15 Thread Matthias Lang
Chris Wedgewood suggested handling this with a printk, to which Arjan van de Ven asked > but why > > if someone wants the stuff rejected in a posix confirm way, he can do > these tests easily in the syscall wrapper he needs anyway for this > function. For negative times and oversized

patch to fix set_itimer() behaviour in boundary cases

2005-01-15 Thread Matthias Lang
Hi, The linux implementation of setitimer() doesn't behave quite as expected. I found several problems: 1. POSIX says that negative times should cause setitimer() to return -1 and set errno to EINVAL. In linux, the call succeeds. 2. POSIX says that time values with usec >= 100 shou