source:
trunk/minix/lib/other/_getsysinfo.c@
12
Last change on this file since 12 was 9, checked in by , 14 years ago | |
---|---|
File size: 359 bytes |
Line | |
---|---|
1 | #include <lib.h> |
2 | #define getsysinfo _getsysinfo |
3 | #include <unistd.h> |
4 | |
5 | |
6 | PUBLIC int getsysinfo(who, what, where) |
7 | int who; /* from whom to request info */ |
8 | int what; /* what information is requested */ |
9 | void *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.