Date: Wed, 19 Mar 1997 12:56:28 +0300 (IDT) From: Eli Zaretskii To: Caspar Derksen cc: djgpp AT delorie DOT com Subject: Re: signal() and alarm() - Bug? In-Reply-To: <5gbup5$2i8@hera.cs.kun.nl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 14 Mar 1997, Caspar Derksen wrote: > The alarm() function can be fixed easily by getting the old timer value > from setitimer(). However, setitimer() then calls getitimer(), and this > function has not yet been implemented in DJGPP's libc. Fixing getitimer() > requires quite some knowlegde on DJGPP internals. From what I see, fixing `getitimer' should be quite easy: you only need to get the value of `__djgpp_timer_countdown' and break it down into seconds and microseconds, since that variable gets decremented on each timer tick. If you need additional info, please ask.