minix/lib/other/_getsysinfo.c
Jorrit Herder 2f74381dcc Fixed 'ps' utility: now get process table addresses with getsysinfo() calls.
To be done: get copies of process tables instead of using /dev/(k)mem.
2005-06-06 13:51:50 +00:00

17 lines
359 B
C

#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);
}