From: Ben Gras Date: Fri, 23 Jun 2006 11:54:35 +0000 (+0000) Subject: library interface for vectored safecopy variant. X-Git-Tag: v3.1.3~297 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=31318a8ce56848e346bc79ff6c4b941a78451b60;p=minix.git library interface for vectored safecopy variant. --- diff --git a/lib/syslib/Makefile.in b/lib/syslib/Makefile.in index 2a4b8b025..0c8584e7d 100644 --- a/lib/syslib/Makefile.in +++ b/lib/syslib/Makefile.in @@ -42,6 +42,7 @@ libsys_FILES=" \ sys_out.c \ sys_physcopy.c \ sys_safecopy.c \ + sys_vsafecopy.c \ sys_sdevio.c \ sys_segctl.c \ sys_setalarm.c \ diff --git a/lib/syslib/sys_vsafecopy.c b/lib/syslib/sys_vsafecopy.c new file mode 100644 index 000000000..343dd0f6d --- /dev/null +++ b/lib/syslib/sys_vsafecopy.c @@ -0,0 +1,18 @@ + +#include "syslib.h" + +#include + +PUBLIC int sys_vsafecopy(struct vscp_vec *vec, int els) +{ +/* Vectored variant of sys_safecopy*. */ + + message copy_mess; + + copy_mess.VSCP_VEC_ADDR = vec; + copy_mess.VSCP_VEC_SIZE = els; + + return(_taskcall(SYSTASK, SYS_VSAFECOPY, ©_mess)); + +} +