minix3/lib/libsys/sys_vsafecopy.c

19 lines
324 B
C
Raw Normal View History

2020-02-21 00:59:27 +05:30
#include "syslib.h"
#include <minix/safecopies.h>
int sys_vsafecopy(struct vscp_vec *vec, int els)
{
/* Vectored variant of sys_safecopy*. */
message copy_mess;
copy_mess.m_lsys_kern_vsafecopy.vec_addr = vec;
copy_mess.m_lsys_kern_vsafecopy.vec_size = els;
return(_kernel_call(SYS_VSAFECOPY, &copy_mess));
}