www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/07/10:50:22

From: Claudio Castellini <drwho AT mrg DOT dist DOT unige DOT it>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: setrlimit & setrusage
Date: Tue, 06 Apr 1999 19:18:22 +0200
Organization: Universita' di Genova
Message-ID: <370A41DE.D2813A51@mrg.dist.unige.it>
References: <3704D9A8 DOT C2D70354 AT mrg DOT dist DOT unige DOT it> <7e2t6r$bca$1 AT news DOT luth DOT se>
NNTP-Posting-Host: tarski.mrg.dist.unige.it
Mime-Version: 1.0
X-Mailer: Mozilla 4.05 [en] (X11; I; Linux 2.0.34 i686)
Lines: 50
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Martin Str|mberg wrote:
> 
> Claudio Castellini (drwho AT mrg DOT dist DOT unige DOT it) wrote:
> : Hello everyone.
> :
> which DOZE doesn't provide. However note that nothing is implemented
> until somebody comes along with enough motivation that does the
> work. (You e. g.) So if somebody knows how to do it and will do it, go
> ahead!

This sound fine. Eli Zaretsky too tells me to do the thing myself, and I am
challenged by this task. The point is, I don't have enough low-level knowledge
about DOS to try to implement such OS-related functions.

Any ideas about books/infosources to start from?


> : (b) if not, d'ya know any other way to stop a program still running after n
> :     seconds without using setrlimit() ?
> 
> It not exactly setrlimit() but what about alarm()?

Great idea! I have come through the CPU time limit problem, thanks to it.
However, there's still no way to put limits on memory, file numbers and other
stuff setrlimit can do.


> : (c) in the 2.02 "what's new" section, it is stated that getrusage and setrusage
> :     have been implemented. What is "setrusage" (couldn't find it in any gcc
> :     documentation)?
> 
> Well it's from libc (I think) so look in the libc documentation, not
> the gcc one. Failing finding anything there, look in the libc
> sources.

Could not find any references to it; I'll assume it's a bug of the manual, as
someone else has suggested.

-- 

              ---------------------+-------------------------------
         Claudio Castellini, M.Sc. | mailto:drwho AT dist DOT unige DOT it
           Biomedical Engineerings | http://www.mrg.dist.unige.it/~drwho
              ---------------------+-------------------------------
                        c/o MRG - University of Genoa
                   viale F. Causa, 15 - 16145 Genoa (Italy)
                  ph. +39 - 0103532811 / fax +39 - 0103532948
              -----------------------------------------------------
                              ...sei come la neve,
                          che tocchi e sciolta e' gia'.

- Raw text -


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