minix/lib/other/_getsysinfo.c

18 lines
359 B
C
Raw Normal View History

2005-04-21 16:53:53 +02:00
#include <lib.h>
#define getsysinfo _getsysinfo
#include <unistd.h>
PUBLIC int getsysinfo(who, what, where)
int who; /* from whom to request info */
int what; /* what information is requested */
void *where; /* where to put it */
{
message m;
m.m1_i1 = what;
m.m1_p1 = where;
if (_syscall(who, GETSYSINFO, &m) < 0) return(-1);
return(0);
}