Drop main() prototype. Syncs with NetBSD-8
[minix.git] / minix / lib / libsys / vm_getrusage.c
blob47bc7a2490e977404c5a7da63abe15a97f5df850
2 #include "syslib.h"
3 #include <string.h>
4 #include <minix/vm.h>
6 int
7 vm_getrusage(endpoint_t endpt, void * addr, int children)
9 message m;
11 memset(&m, 0, sizeof(m));
12 m.m_lsys_vm_rusage.endpt = endpt;
13 m.m_lsys_vm_rusage.addr = (vir_bytes)addr;
14 m.m_lsys_vm_rusage.children = children;
16 return _taskcall(VM_PROC_NR, VM_GETRUSAGE, &m);