emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: get-internal-run-time


From: Lars Brinkhoff
Subject: Re: get-internal-run-time
Date: 02 May 2004 17:45:36 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

"Eli Zaretskii" <address@hidden> writes:
> > From: Lars Brinkhoff <address@hidden>
> > + #ifdef HAVE_SYS_RESOURCE_H
> > +   struct rusage usage;
> > +   Lisp_Object result[3];
> > +   int secs, usecs;
> > + 
> > +   if (getrusage (RUSAGE_SELF, &usage) < 0)
> > +     /* This shouldn't happen.  What action is appropriate?  */
> > +     Fsignal (Qerror, Qnil);
> Is it enough to test for sys/resource.h to deduce that getrusage is
> available?  Or perhaps we need to test for the function as well?

Yes, I guess we'd better check to be on the safe side.

-- 
Lars Brinkhoff,         Services for Unix, Linux, GCC, HTTP
Brinkhoff Consulting    http://www.brinkhoff.se/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]