1*433d6423SLionel Sambuc 2*433d6423SLionel Sambuc #include "syslib.h" 3*433d6423SLionel Sambuc 4*433d6423SLionel Sambuc #include <minix/safecopies.h> 5*433d6423SLionel Sambuc sys_vsafecopy(struct vscp_vec * vec,int els)6*433d6423SLionel Sambucint sys_vsafecopy(struct vscp_vec *vec, int els) 7*433d6423SLionel Sambuc { 8*433d6423SLionel Sambuc /* Vectored variant of sys_safecopy*. */ 9*433d6423SLionel Sambuc 10*433d6423SLionel Sambuc message copy_mess; 11*433d6423SLionel Sambuc 12*433d6423SLionel Sambuc copy_mess.m_lsys_kern_vsafecopy.vec_addr = vec; 13*433d6423SLionel Sambuc copy_mess.m_lsys_kern_vsafecopy.vec_size = els; 14*433d6423SLionel Sambuc 15*433d6423SLionel Sambuc return(_kernel_call(SYS_VSAFECOPY, ©_mess)); 16*433d6423SLionel Sambuc 17*433d6423SLionel Sambuc } 18*433d6423SLionel Sambuc 19