pkgin_all: script to auto-install all packages
[minix.git] / lib / libsys / sys_memset.c
blob65e6590ab8eab5df6cf4a39379c8c77f51f55db3
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.MEM_PTR = (char *) base;
12 mess.MEM_COUNT = bytes;
13 mess.MEM_PATTERN = pattern;
14 mess.MEM_PROCESS = who;
16 return(_kernel_call(SYS_MEMSET, &mess));