From owner-cvs-all Mon Jun 24 12:27:16 2002 Delivered-To: cvs-all@freebsd.org Received: from overcee.wemm.org (12-232-114-102.client.attbi.com [12.232.114.102]) by hub.freebsd.org (Postfix) with ESMTP id 3465D37B400; Mon, 24 Jun 2002 12:27:12 -0700 (PDT) Received: from wemm.org (localhost [127.0.0.1]) by overcee.wemm.org (Postfix) with ESMTP id 108D9380E; Mon, 24 Jun 2002 12:27:16 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Martin Faxer Cc: David Greenman-Lawrence , Alfred Perlstein , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern uipc_syscalls.c In-Reply-To: <20020624180724.GB2134@lockdown.spectrum.fearmuffs.net> Date: Mon, 24 Jun 2002 12:27:16 -0700 From: Peter Wemm Message-Id: <20020624192716.108D9380E@overcee.wemm.org> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Martin Faxer wrote: > On 2002.06.24 10:46:13 +0000, David Greenman-Lawrence wrote: > > I don't have any experience trying to do this, but my understanding is > > that the syscall would need to be deprecated and renamed something like > > osendfile(). osendfile() just becomes a compatibility shim (presumably > > subtracting the header length from nbytes) and then calls the new syscall. > > i think you add a new syscall entity in syscalls.master for the new > syscall (like nsendfile()) and then update libc to call that instead > of the old syscall. > > then all old cold will still call osendfile() but code linked with a > newer libc will call the new one. libc syscall stubs are auto-generated from the kernel syscall list. Doing this would cause libc to have 'nsendfile' instead of 'sendfile'. Of course, if you are prepared to add #define sendfile nsendfile in an include file, then that works. Cheers, -Peter -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message