Mail Archives: djgpp/1999/04/03/08:40:20
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
- Raw text -