2006-06-23 13:54:35 +02:00
|
|
|
|
|
|
|
#include "syslib.h"
|
|
|
|
|
|
|
|
#include <minix/safecopies.h>
|
|
|
|
|
2012-03-25 20:25:53 +02:00
|
|
|
int sys_vsafecopy(struct vscp_vec *vec, int els)
|
2006-06-23 13:54:35 +02:00
|
|
|
{
|
|
|
|
/* Vectored variant of sys_safecopy*. */
|
|
|
|
|
|
|
|
message copy_mess;
|
|
|
|
|
2007-04-02 17:10:07 +02:00
|
|
|
copy_mess.VSCP_VEC_ADDR = (char *) vec;
|
2006-06-23 13:54:35 +02:00
|
|
|
copy_mess.VSCP_VEC_SIZE = els;
|
|
|
|
|
2010-02-09 16:20:09 +01:00
|
|
|
return(_kernel_call(SYS_VSAFECOPY, ©_mess));
|
2006-06-23 13:54:35 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|