From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.devel Subject: Re: get-internal-run-time Date: Sun, 02 May 2004 16:44:21 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <5567-Sun02May2004164421+0300-eliz@gnu.org> References: <85k7036eqr.fsf@junk.nocrew.org> <85vfjgbphf.fsf_-_@junk.nocrew.org> <85isfgasj6.fsf@junk.nocrew.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1083505689 27182 80.91.224.253 (2 May 2004 13:48:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 2 May 2004 13:48:09 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun May 02 15:48:02 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BKHK6-0004oi-00 for ; Sun, 02 May 2004 15:48:02 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BKHK6-0001aj-00 for ; Sun, 02 May 2004 15:48:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BKHJx-0000ld-6f for emacs-devel@quimby.gnus.org; Sun, 02 May 2004 09:47:53 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BKHJT-0000Pg-LU for emacs-devel@gnu.org; Sun, 02 May 2004 09:47:23 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BKHIa-000832-Rg for emacs-devel@gnu.org; Sun, 02 May 2004 09:47:01 -0400 Original-Received: from [192.114.186.23] (helo=aragorn.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BKHHM-0006pq-5B for emacs-devel@gnu.org; Sun, 02 May 2004 09:45:12 -0400 Original-Received: from zaretski (pns03-201-118.inter.net.il [80.230.201.118]) by aragorn.inter.net.il (MOS 3.4.5-GR) with ESMTP id CUQ25757; Sun, 2 May 2004 16:44:34 +0300 (IDT) Original-To: Lars Brinkhoff X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: <85isfgasj6.fsf@junk.nocrew.org> (message from Lars Brinkhoff on 01 May 2004 20:53:01 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:22532 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22532 > From: Lars Brinkhoff > 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?