2 #include <minix/endpoint.h>
3 #define getsysinfo _getsysinfo
4 #define getsysinfo_up _getsysinfo_up
5 #include <minix/sysinfo.h>
8 PUBLIC
int getsysinfo(who
, what
, where
)
9 endpoint_t who
; /* from whom to request info */
10 int what
; /* what information is requested */
11 void *where
; /* where to put it */
16 if (_syscall(who
, GETSYSINFO
, &m
) < 0) return(-1);
20 /* Unprivileged variant of getsysinfo. */
21 PUBLIC ssize_t
getsysinfo_up(who
, what
, size
, where
)
22 endpoint_t who
; /* from whom to request info */
23 int what
; /* what information is requested */
24 size_t size
; /* input and output size */
25 void *where
; /* where to put it */
31 return _syscall(who
, GETSYSINFO_UP
, &m
);