From owner-cvs-all Mon Jun 24 12:58: 7 2002 Delivered-To: cvs-all@freebsd.org Received: from lockdown.spectrum.fearmuffs.net (c164-147.pro.thalamus.se [212.31.164.147]) by hub.freebsd.org (Postfix) with ESMTP id 0692637B420; Mon, 24 Jun 2002 12:56:40 -0700 (PDT) Received: from lockdown.spectrum.fearmuffs.net (localhost.spectrum.fearmuffs.net [127.0.0.1]) by lockdown.spectrum.fearmuffs.net (8.12.3/8.12.3) with ESMTP id g5OJudtB003369; Mon, 24 Jun 2002 21:56:39 +0200 (CEST) (envelope-from gmh003532@brfmasthugget.se) Received: (from redpixel@localhost) by lockdown.spectrum.fearmuffs.net (8.12.3/8.12.3/Submit) id g5OJuXQs003368; Mon, 24 Jun 2002 21:56:33 +0200 (CEST) (envelope-from gmh003532@brfmasthugget.se) Date: Mon, 24 Jun 2002 21:56:33 +0200 From: Martin Faxer To: Peter Wemm Cc: David Greenman-Lawrence , Alfred Perlstein , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern uipc_syscalls.c Message-ID: <20020624195633.GC2134@lockdown.spectrum.fearmuffs.net> References: <20020624180724.GB2134@lockdown.spectrum.fearmuffs.net> <20020624192716.108D9380E@overcee.wemm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020624192716.108D9380E@overcee.wemm.org> User-Agent: Mutt/1.3.99i 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 On 2002.06.24 12:27:16 +0000, Peter Wemm wrote: > Martin Faxer wrote: > > 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. ok, thanks for clearing that up. I wasn't exactly sure how that part worked. what actually prompted me to write the nsendfile() thing was that I quickly checked syscalls.master and saw entries for n[lf]stat(). upon checking more closely that might be something else though, and not related at all to "new" stat() functions, I'm not sure... so in this case, what is the correct procedure to follow ? do you add a new sendfile() entity to syscalls.master and mark the old one as "COMPAT" (will that "change" its name to osendfile() ?) or do you simply rename it (the old one) to osendfile() ? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message