Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jun 2002 12:27:16 -0700
From:      Peter Wemm <peter@wemm.org>
To:        Martin Faxer <gmh003532@brfmasthugget.se>
Cc:        David Greenman-Lawrence <dg@root.com>, Alfred Perlstein <alfred@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/kern uipc_syscalls.c 
Message-ID:  <20020624192716.108D9380E@overcee.wemm.org>
In-Reply-To: <20020624180724.GB2134@lockdown.spectrum.fearmuffs.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020624192716.108D9380E>