minix/lib/libsys/getsysinfo.c
2010-09-14 21:50:05 +00:00

16 lines
376 B
C

#include <lib.h>
#include <minix/sysinfo.h>
#include <minix/com.h>
PUBLIC int getsysinfo(who, what, where)
endpoint_t who; /* from whom to request info */
int what; /* what information is requested */
void *where; /* where to put it */
{
message m;
m.SI_WHAT = what;
m.SI_WHERE = where;
if (_syscall(who, COMMON_GETSYSINFO, &m) < 0) return(-1);
return(0);
}