Date: Tue, 18 Mar 1997 17:08:25 +0200 (EET) From: Indrek Mandre To: 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. I would like to ask another question about setitimer. I have a programme in Linux. It sets with sigaction to SIGALARM call my handler. After that I use setitimer to call my function 100 times in one second. It works. In DJGPP my handler gets called only 10 times in one second. Is it possible to make it call my function more times? Yes I could use timer interupt like in Allegro but I would like to do it easyway. Is it possible? Or is it just a bug in my programme? DJGPP? PC? Another question (why not all in here): I'v seen that in DOS there are strange functions like findfirst, findnext and other such stupid (my opinion) things. I wonder why people do not use open-/read-/xxx-dir/stat/xx. Anyway I want to port some programmes from DJGPP to Linux. And there are those findfirsts and other artworks in there. My question: is there anywhere such library which helps me to port those ugly things. It's a serious problem. If any1 knows or has made something like that, let me know. Or should I ask that in some Linux newsgroup? /* * Indrek Mandre * indrek AT warp DOT edu DOT ee */