source: trunk/minix/lib/other/_getsysinfo.c@ 12

Last change on this file since 12 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 359 bytes
Line 
1#include <lib.h>
2#define getsysinfo _getsysinfo
3#include <unistd.h>
4
5
6PUBLIC int getsysinfo(who, what, where)
7int who; /* from whom to request info */
8int what; /* what information is requested */
9void *where; /* where to put it */
10{
11 message m;
12 m.m1_i1 = what;
13 m.m1_p1 = where;
14 if (_syscall(who, GETSYSINFO, &m) < 0) return(-1);
15 return(0);
16}
17
Note: See TracBrowser for help on using the repository browser.