From owner-freebsd-hackers Tue Nov 14 11:07:47 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id LAA03940 for hackers-outgoing; Tue, 14 Nov 1995 11:07:47 -0800 Received: from Root.COM (implode.Root.COM [198.145.90.17]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id LAA03927 for ; Tue, 14 Nov 1995 11:07:41 -0800 Received: from corbin.Root.COM (corbin [198.145.90.50]) by Root.COM (8.6.12/8.6.5) with ESMTP id LAA29060; Tue, 14 Nov 1995 11:07:39 -0800 Received: from localhost (localhost [127.0.0.1]) by corbin.Root.COM (8.6.12/8.6.5) with SMTP id LAA00617; Tue, 14 Nov 1995 11:06:11 -0800 Message-Id: <199511141906.LAA00617@corbin.Root.COM> To: peter@haywire.dialix.com (Peter Wemm) cc: freebsd-hackers@freebsd.org Subject: Re: Can't NFS mount with latest -current In-reply-to: Your message of "15 Nov 95 02:38:36 +0800." <48annc$8lr$1@haywire.DIALix.COM> From: David Greenman Reply-To: davidg@Root.COM Date: Tue, 14 Nov 1995 11:06:11 -0800 Sender: owner-hackers@freebsd.org Precedence: bulk >Anyway, Poul-Henning has created two sysctl types.. one is a >null-terminated "C-style" string, and the other is an "opaque" chunk >of byte counted memory. IMHO, the string version should always return >the correct amount of characters that the string actually uses. If >the whole block is to be returned, that's what the opaque type is for. Yes, the "size" argument should be used to limit the copy, not prevent it from happening. We should be using copyoutstr() for this. -DG