From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Lars Brinkhoff Newsgroups: gmane.emacs.devel Subject: Re: get-internal-run-time Date: 02 May 2004 17:45:36 +0200 Organization: nocrew Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <85n04qal3z.fsf@junk.nocrew.org> References: <85k7036eqr.fsf@junk.nocrew.org> <85vfjgbphf.fsf_-_@junk.nocrew.org> <85isfgasj6.fsf@junk.nocrew.org> <5567-Sun02May2004164421+0300-eliz@gnu.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1083513149 8289 80.91.224.253 (2 May 2004 15:52:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 2 May 2004 15:52:29 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun May 02 17:52:21 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 1BKJGP-0000zO-00 for ; Sun, 02 May 2004 17:52:21 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BKJGO-0003e5-00 for ; Sun, 02 May 2004 17:52:21 +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 1BKJEt-0004c3-Bt for emacs-devel@quimby.gnus.org; Sun, 02 May 2004 11:50:47 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BKJBm-0002bo-LC for emacs-devel@gnu.org; Sun, 02 May 2004 11:47:34 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BKJAZ-0000bM-3p for emacs-devel@gnu.org; Sun, 02 May 2004 11:46:52 -0400 Original-Received: from [213.242.147.30] (helo=junk.nocrew.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BKJ9z-0000BX-2Z; Sun, 02 May 2004 11:45:43 -0400 Original-Received: from lars by junk.nocrew.org with local (Exim 3.35 #1 (Debian)) id 1BKJ9s-0005EK-00; Sun, 02 May 2004 17:45:36 +0200 Original-To: Eli Zaretskii In-Reply-To: <5567-Sun02May2004164421+0300-eliz@gnu.org> Original-Lines: 18 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 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:22533 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22533 "Eli Zaretskii" writes: > > From: Lars Brinkhoff > > + #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/