cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/19/05:05:55

Date: Wed, 19 Mar 1997 12:56:28 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Caspar Derksen <caspard AT sci DOT kun DOT nl>
cc: djgpp AT delorie DOT com
Subject: Re: signal() and alarm() - Bug?
In-Reply-To: <5gbup5$2i8@hera.cs.kun.nl>
Message-ID: <Pine.SUN.3.91.970319125602.19845N-100000@is>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019