From owner-freebsd-questions Wed Nov 19 17:59:38 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA25003 for questions-outgoing; Wed, 19 Nov 1997 17:59:38 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from localhost.kiev.ua (c118.dialup.ISF.Kiev.UA [194.44.162.118]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id RAA24991 for ; Wed, 19 Nov 1997 17:59:26 -0800 (PST) (envelope-from kushn@olinet.isf.kiev.ua) Received: from localhost (volodya@localhost) by localhost.kiev.ua (8.8.8/8.8.5) with SMTP id EAA27129 for ; Thu, 20 Nov 1997 04:02:51 +0200 (EET) Date: Thu, 20 Nov 1997 04:02:50 +0200 (EET) From: Vladimir Kushnir X-Sender: volodya@kushnir.kiev.ua Reply-To: Vladimir Kushnir To: freebsd-questions@FreeBSD.ORG Subject: System information: how to? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hello all Sorry if this question is misplaced, but how do I retrieve a system information (free memory, cache, swap total and in use etc.) from inside of the program without having to exec something (having in mind something like KDE kcontrolcenter)? sysctl() doesn't seem to give a lot of it. Oh, one more thing: I'd prefer not to setuid it. Thanks in advance Vladimir