Drop main() prototype. Syncs with NetBSD-8
[minix.git] / minix / lib / libsys / sys_memset.c
blob0ecfff9a48de68820f38fde7875981f9967ac1a9
1 #include "syslib.h"
3 int sys_memset(endpoint_t who, unsigned long pattern,
4 phys_bytes base, phys_bytes bytes)
6 /* Zero a block of data. */
7 message mess;
9 if (bytes == 0L) return(OK);
11 mess.m_lsys_krn_sys_memset.base = base;
12 mess.m_lsys_krn_sys_memset.count = bytes;
13 mess.m_lsys_krn_sys_memset.pattern = pattern;
14 mess.m_lsys_krn_sys_memset.process = who;
16 return(_kernel_call(SYS_MEMSET, &mess));