__aeabi_ldivmod: fix sign logic
[minix.git] / lib / libsys / sys_safememset.c
blob8032a20bb78572617847cb0758d943428ecad685
1 #include "syslib.h"
3 #include <minix/safecopies.h>
5 int sys_safememset(endpoint_t dst_e, cp_grant_id_t gr_id,
6 vir_bytes offset, int pattern, size_t len)
8 /* memset() a block of data using pattern */
10 message copy_mess;
12 copy_mess.SMS_DST = dst_e;
13 copy_mess.SMS_GID = gr_id;
14 copy_mess.SMS_OFFSET = (long) offset;
15 copy_mess.SMS_PATTERN = pattern;
16 copy_mess.SMS_BYTES = (long) len;
18 return(_kernel_call(SYS_SAFEMEMSET, &copy_mess));