From: ams AT ludd DOT luth DOT se (Martin Str|mberg) Newsgroups: comp.os.msdos.djgpp Subject: Re: setrlimit & setrusage Date: 2 Apr 1999 17:02:19 GMT Organization: University of Lulea, Sweden Lines: 32 Message-ID: <7e2t6r$bca$1@news.luth.se> References: <3704D9A8 DOT C2D70354 AT mrg DOT dist DOT unige DOT it> NNTP-Posting-Host: queeg.ludd.luth.se X-Newsreader: TIN [UNIX 1.3 950824BETA PL0] To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Claudio Castellini (drwho AT mrg DOT dist DOT unige DOT it) wrote: : Hello everyone. : : I need desperately to put a timeout on my program, compiled under DJGPP. I : looked at the online documentation and found that setrlimit is, by now, : implemented as a dummy. : : (a) does the DJGPP staff plan to fully implement it in the near future? I don't think so, because I believe support from the OS is needed 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! : (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()? : (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. Lush, Split, MartinS