From owner-freebsd-ports@FreeBSD.ORG Thu Jan 26 00:25:18 2006 Return-Path: X-Original-To: ports@FreeBSD.ORG Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E629F16A420 for ; Thu, 26 Jan 2006 00:25:18 +0000 (GMT) (envelope-from barner@gmx.de) Received: from mail.gmx.net (mail.gmx.de [213.165.64.21]) by mx1.FreeBSD.org (Postfix) with SMTP id DA9AD43D48 for ; Thu, 26 Jan 2006 00:25:16 +0000 (GMT) (envelope-from barner@gmx.de) Received: (qmail invoked by alias); 26 Jan 2006 00:25:15 -0000 Received: from unknown (EHLO localhost.glh.mhn.de) [129.187.43.241] by mail.gmx.net (mp007) with SMTP; 26 Jan 2006 01:25:15 +0100 X-Authenticated: #147403 Received: by localhost.glh.mhn.de (Postfix, from userid 1000) id 0F362C1C1; Thu, 26 Jan 2006 01:25:21 +0100 (CET) Date: Thu, 26 Jan 2006 01:25:20 +0100 From: Simon Barner To: Brooks Davis Message-ID: <20060126002520.GK1692@zi025.> References: <20060124172317.GF72149@iib.unsam.edu.ar> <20060124205937.GC21232@odin.ac.hmc.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Pz0BBB9QxoYXlT+x" Content-Disposition: inline In-Reply-To: <20060124205937.GC21232@odin.ac.hmc.edu> User-Agent: Mutt/1.5.11 X-Y-GMX-Trusted: 0 Cc: FreeBSD Ports Subject: Re: porting an app that checks /proc/meminfo X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jan 2006 00:25:19 -0000 --Pz0BBB9QxoYXlT+x Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Brooks Davis wrote: > If you want the ram used by a particular process use getrusage(2). Unfortuantely, memory usage information does not seem to be implemented on Linux (it certainly is on FreeBSD). Another instance of those annoying portability issues... --=20 Best regards / Viele Gr=FC=DFe, barner@FreeBSD.= org Simon Barner barner@gmx.de --Pz0BBB9QxoYXlT+x Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFD2BbwCkn+/eutqCoRAljmAJ9fIzqOnNm/H8fHpfO/MyPXnvaNUgCfcxo4 J547mGghSFhc2R3vxtU99vM= =TgoR -----END PGP SIGNATURE----- --Pz0BBB9QxoYXlT+x--