VM: full munmap
[minix.git] / lib / libsys / getsysinfo.c
blobbb841b61cde9cc616b20d358d2e16241fda7f4b0
2 #include <lib.h>
3 #include <minix/sysinfo.h>
4 #include <minix/com.h>
6 int getsysinfo(
7 endpoint_t who, /* from whom to request info */
8 int what, /* what information is requested */
9 void *where, /* where to put it */
10 size_t size /* how big it should be */
13 message m;
14 m.SI_WHAT = what;
15 m.SI_WHERE = where;
16 m.SI_SIZE = size;
17 if (_syscall(who, COMMON_GETSYSINFO, &m) < 0) return(-1);
18 return(0);