| 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 | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 19 | 
   | 
 NetBSD 1.x | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 20 | 
   | 
 NetBSD 2.x | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 21 | 
   | 
 OpenBSD 3.x | 
 
 
 
 
 
 
 
 
 
 
 
 | 22 | 
 < | 
 Solaris 2.6 | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 23 | 
 < | 
 Solaris 2.7 | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 24 | 
 < | 
 Solaris 2.8 (sparc & x86) | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 25 | 
 < | 
 Solaris 2.9 (sparc & x86) | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 22 | 
 > | 
 Solaris 6 | 
 
 
 
 
 
 | 23 | 
 > | 
 Solaris 7 | 
 
 
 
 
 
 | 24 | 
 > | 
 Solaris 8 (sparc & x86) | 
 
 
 
 
 
 | 25 | 
 > | 
 Solaris 9 (sparc & x86) | 
 
 
 
 
 
 | 26 | 
 > | 
 Solaris 10 (sparc) | 
 
 
 
 
 
 
 
 
 
 
 
 | 27 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 28 | 
   | 
 Platform Specific Notes | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 29 | 
   | 
 ======================= | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 38 | 
   | 
 by the get_network_iface_stats function. Not having these privileges | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 39 | 
   | 
 results in NULL being returned. | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 40 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 | 41 | 
 < | 
 Also note that this cannot be solved by calling statgrab_init and then | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 42 | 
 < | 
 statgrab_drop_privileges at this stage. | 
 
 
 
 
 
 
 
 
 
 | 41 | 
 > | 
 Also note that this cannot be solved by calling sg_init and then | 
 
 
 
 
 
 | 42 | 
 > | 
 sg_drop_privileges at this stage. | 
 
 
 
 
 
 
 
 
 
 
 
 | 43 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 44 | 
   | 
 FreeBSD 4 | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 45 | 
   | 
 --------- | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 46 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 47 | 
   | 
 On FreeBSD 4 (not on 5) programs need to be setgid kmem to get swap | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 48 | 
   | 
 statistics. It is sufficient to give a program these privileges, call | 
 
 
 
 
 
 
 
 
 
 
 
 | 49 | 
 < | 
 statgrab_init, and then drop the privileges using statgrab_drop_privileges. | 
 
 
 
 
 
 
 
 
 
 | 49 | 
 > | 
 sg_init, and then drop the privileges using sg_drop_privileges. | 
 
 
 
 
 
 
 
 
 
 
 
 | 50 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 | 51 | 
 < | 
 The get_swap_stats function will return NULL if this hasn't been done. | 
 
 
 
 
 
 
 
 
 
 | 51 | 
 > | 
 The sg_get_swap_stats function will return NULL if this hasn't been done. | 
 
 
 
 
 
 
 
 
 
 
 
 | 52 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 53 | 
   | 
 Solaris 2.6/2.7 | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 54 | 
   | 
 --------------- | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 57 | 
   | 
 mapping list (eg. mapping ssd0 on to c0t0d0s0). If these privileges | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 58 | 
   | 
 aren't available the names will be left as ssd0, for example. | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 59 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 | 60 | 
 < | 
 It is sufficient to use statgrab_init and statgrab_drop_privileges. | 
 
 
 
 
 
 
 
 
 
 | 60 | 
 > | 
 It is sufficient to use sg_init and sg_drop_privileges. | 
 
 
 
 
 
 
 
 
 
 
 
 | 61 | 
   | 
  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 62 | 
   | 
 Cygwin | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 63 | 
   | 
 ------ |