From owner-freebsd-current Mon Nov 26 14:52:44 2001 Delivered-To: freebsd-current@freebsd.org Received: from router.hackerheaven.org (coolvibe.xs4all.nl [194.109.39.166]) by hub.freebsd.org (Postfix) with ESMTP id 0F4D337B405 for ; Mon, 26 Nov 2001 14:52:37 -0800 (PST) Received: by router.hackerheaven.org (Postfix, from userid 1000) id CFDF21CA1; Mon, 26 Nov 2001 23:52:00 +0100 (CET) Date: Mon, 26 Nov 2001 23:52:00 +0100 From: Emiel Kollof To: Doug White Cc: freebsd-current@FreeBSD.ORG Subject: Re: kvm_getswapinfo() not backwards compatible? Message-ID: <20011126235200.D546@laptop.hackerheaven.org> References: <20011126193305.C546@laptop.hackerheaven.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.23i X-Mailer: Mutt 1.3.23i (2001-10-09) X-Editor: Vim http://www.vim.org/ X-Info: http://www.hackerheaven.org/ X-Info2: http://www.cmdline.org/ X-Info3: http://www.coolvibe.org/ Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Doug White (dwhite@resnet.uoregon.edu) wrote: > > > > kd = kvm_open("/dev/null", "/dev/null", "/dev/null", O_RDONLY, "kvm_open"); > > This looks wrong .... I think you want the first three arguments to be > NULL, not "/dev/null". > > /dev/null is not a kernel image. :-) I could've sworn I saw it done like that in the sources for top(1), but after checking again, you are right. It seems to work though on CURRENT. Is it a feature? :-) Cheers, Emiel -- When the government bureau's remedies don't match your problem, you modify the problem, not the remedy. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message