12 |
|
DragonFly BSD 1.x |
13 |
|
FreeBSD 4.x |
14 |
|
FreeBSD 5.x |
15 |
+ |
HP-UX 11.11 (parisc) |
16 |
|
Linux 2.2 |
17 |
|
Linux 2.4 |
18 |
|
Linux 2.6 |
37 |
|
by the get_network_iface_stats function. Not having these privileges |
38 |
|
results in NULL being returned. |
39 |
|
|
40 |
< |
Also note that this cannot be solved by calling statgrab_init and then |
41 |
< |
statgrab_drop_privileges at this stage. |
40 |
> |
Also note that this cannot be solved by calling sg_init and then |
41 |
> |
sg_drop_privileges at this stage. |
42 |
|
|
43 |
|
FreeBSD 4 |
44 |
|
--------- |
45 |
|
|
46 |
|
On FreeBSD 4 (not on 5) programs need to be setgid kmem to get swap |
47 |
|
statistics. It is sufficient to give a program these privileges, call |
48 |
< |
statgrab_init, and then drop the privileges using statgrab_drop_privileges. |
48 |
> |
sg_init, and then drop the privileges using sg_drop_privileges. |
49 |
|
|
50 |
< |
The get_swap_stats function will return NULL if this hasn't been done. |
50 |
> |
The sg_get_swap_stats function will return NULL if this hasn't been done. |
51 |
|
|
52 |
|
Solaris 2.6/2.7 |
53 |
|
--------------- |
56 |
|
mapping list (eg. mapping ssd0 on to c0t0d0s0). If these privileges |
57 |
|
aren't available the names will be left as ssd0, for example. |
58 |
|
|
59 |
< |
It is sufficient to use statgrab_init and statgrab_drop_privileges. |
59 |
> |
It is sufficient to use sg_init and sg_drop_privileges. |
60 |
|
|
61 |
|
Cygwin |
62 |
|
------ |