From owner-freebsd-current@FreeBSD.ORG Sat Nov 15 15:44:23 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B44F716A4CE for ; Sat, 15 Nov 2003 15:44:23 -0800 (PST) Received: from heron.mail.pas.earthlink.net (heron.mail.pas.earthlink.net [207.217.120.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id E255A43F93 for ; Sat, 15 Nov 2003 15:44:22 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from user-2ivfj2j.dialup.mindspring.com ([165.247.204.83] helo=mindspring.com) by heron.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 1ALA5T-0006Aw-00; Sat, 15 Nov 2003 15:44:19 -0800 Message-ID: <3FB6BA40.6B7B2FD8@mindspring.com> Date: Sat, 15 Nov 2003 15:44:00 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Matthew Dillon References: <200311121855.hACItAaG006605@beastie.mckusick.com> <200311152159.hAFLx2mQ074474@apollo.backplane.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4b923b9b301a7d8ba7b51f581bcd206e43ca473d225a0f487350badd9bab72f9c350badd9bab72f9c cc: Kirk McKusick cc: freebsd-current@freebsd.org Subject: Re: HEADS-UP new statfs structure condidered harmful X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Nov 2003 23:44:23 -0000 Matthew Dillon wrote: > I recommend that instead of rolling these sorts of system calls over > and over again (how many versions of stat do we have now? A lot!), > that instead you make a system call which returns a capability buffer > and then have libc load the capabilities it understands into the > structure. That way you don't have to worry about forwards and > backwards kernel compatibility. > > This is what I plan to do with DragonFly for *stat(), *statfs*(), > various sysctls that return structures, and so forth. Wherever it makes > sense to do it. How do you propose to achieve POSIX compliance? At the library level? Or "not at all"? -- Terry