Mail Archives: djgpp/2000/01/14/18:05:38
Jeff Williams (jeffw AT darwin DOT sfbr DOT org) wrote:
: -: I'm certainly curious to know in which program/package, since most of the
: -: GNU *utils are design to be use with Unix shells so the return
: -: value of main is important when doing shell scripts.
: One place I found it was in time.c of the GNU time-1.7.tar.gz archive.
: This compiled right out of the box (well, almost), but when I ran the
: executable I got a brutal reminder that DOS can't fork(). Duh. [:-/
8-)
time as not been maintained for a long long time. But I suspect
you could use spawn () to emulate the fork (). My guest is that
time probably call time () or gettimeofday() and fork ()/ exec ()
and wait () till completion to recall time()/gettimeofday() and
then show you the stats. This is a good approximation,
for OS who do not support fully getrusage (). Does DJGPP
support getrusage () ?
--
au revoir, alain
----
Aussi haut que l'on soit assis, on est toujours assis que sur son cul !!!
- Raw text -