[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: get-internal-run-time
From: |
Eli Zaretskii |
Subject: |
Re: get-internal-run-time |
Date: |
Sun, 02 May 2004 16:44:21 +0200 |
> From: Lars Brinkhoff <address@hidden>
> Date: 01 May 2004 20:53:01 +0200
>
> + #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?