Mail Archives: djgpp/1997/03/19/05:05:55
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.
- Raw text -