Subject: Re: Sample splice(2) via kcont(9), work-in-progress towards sendfile()
To: None <tech-kern@netbsd.org>
From: Jonathan Stone <jonathan@Pescadero.dsg.stanford.edu>
List: tech-kern
Date: 10/05/2005 11:00:11
In message <E1ENCGv-0004bN-00@smeg.dsg.stanford.edu>
Jonathan Stone writes [to tech-net@netbsd.org]:

>Below is a rough first-pass first cut at splice(2), based on the the
>API from Kevin Fall and Sally Floyd's work:

[...]

>Index: kern/syscalls.master
>===================================================================
>RCS file: /cvsroot/src/sys/kern/syscalls.master,v
>retrieving revision 1.145
>diff -w -u -r1.145 syscalls.master
>--- kern/syscalls.master	25 Feb 2005 19:53:56 -0000	1.145
>+++ kern/syscalls.master	1 Sep 2005 23:55:20 -0000
>@@ -751,3 +751,6 @@
> 			    const sigset_t *mask); }
> 374	STD		{ int sys_pollts(struct pollfd *fds, u_int nfds, \
> 			    const struct timespec *ts, const sigset_t *mask); }
>+375	STD		{ int sys_splice(int fd1, int fd2); }
>+376     STD		{ int sys_sendfile(int fd, int s, off_t offset, size_t 
>nbytes, \
>+                                void *hdtr, off_t *sbytes, int flags); }


Anyone object if I and reserve these two ssycall numbers,
as UNIMPL for now?