Date: Mon, 12 Jul 1999 13:54:48 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: djgpp-workers AT delorie DOT com cc: DJ Delorie Subject: setitimer and getitimer Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com It seems that our implementation gets wrong the value returned by getitimer and setitimer (the latter in the ovalue argument). We return the *remaining* time until the timer expires, whereas the Unix semantics seems to be to return the *original* timer value passed to setitimer last time it was called. Does Posix have any clear specification about this? I found this when some Unix program that relied on this didn't work as expected when compiled with DJGPP. I checked on a Sparc/Solaris machine nearby, and it indeed returns the original timer values. Can people please check this on Linux and maybe other platforms as well? Changing our behavior is easy, but I'd like to know that I'm doing the right thing... Thanks in advance.