Mail Archives: djgpp/1997/12/07/13:46:52
From: | Thomas Demmer <demmer AT LSTM DOT Ruhr-UNI-Bochum DOT De>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: itimers
|
Date: | Sun, 07 Dec 1997 15:24:39 +0100
|
Organization: | Lehrstuhl fuer Stroemungsmechanik
|
Lines: | 37
|
Message-ID: | <348AB1A7.17D7E189@LSTM.Ruhr-UNI-Bochum.De>
|
References: | <66a8co$8b9$1 AT nef DOT ens DOT fr>
|
NNTP-Posting-Host: | bvb.lstm.ruhr-uni-bochum.de
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Skal wrote:
>
> Hi,
>
> I've got a unix program that uses setitimer() and
> getitimer() (in ITIMER_REAL mode). The problem
> is that it refuses to work when compiled with
> DJGPP. Am i doing something wrong or is there
> really a compatibility problem?
itimer _is_ slightly broken, but what exactly do you mean
that it refuses to work?
The 2.01 version supports only ITIMER_REAL or ITIMER_PROF
at the same time. So profiling will not work. Furthermore,
when running under a debugger, it'll crash as soon as the timer
interrupt is triggered. Mostly with SIGSEGV, sometimes with
SIGABRT. Under plain DOS, however, it works as expected. This
is a bug (?) in gdb. Charles once tried to explain the reason,
but I didn't understand what he said ;-)
I never tried it under Win 3.11 or even W 95, but I suppose
it'll be less reliable, because Windoze fiddles around
with the timers itself.
--
Ciao
Tom
*************************************************************
* Thomas Demmer *
* Lehrstuhl fuer Stroemungsmechanik *
* Ruhr-Uni-Bochum *
* Universitaetsstr. 150 *
* D-44780 Bochum *
* Tel: +49 234 700 6434 *
* Fax: +49 234 709 4162 *
* http://www.lstm.ruhr-uni-bochum.de/~demmer *
*************************************************************
- Raw text -