Add WIN32 support via MINGW. We'll need to add stuff to the README file about what this requires to build. All the hard work done by: skel
Add sg_get_pstat_static for HP-UX. (Untested.)
Shift a bunch of parsing functions to be linux/cygwin only. Prompted by a regex related compile error on FreeBSD (we don't use regex's on FreeBSD).
Add sg_realloc, and a macro fo sg_malloc.
Update name of project at the top of all soure files. These files now exist in their own right, rather than as part of the "CMS".
Make sg_update_string return an int to indicate success, so that it can be used to set a string to NULL. Make Linux process_stats code set proctitle to NULL if it's empty rather than "".
Rename all the functions, types and enums in the API to be consistent. Types are now of the form "sg_mem_stats"; functions of the form "sg_get_mem_stats"; enums of the form "SG_PROCESS_STATE_RUNNING". (The old get_proc_snapshot follows the usual calling convention now.) Make internal functions static where possible. Rename non-static internal functions to have an sg_ prefix so they don't collide with those from other libraries. In particular, strlcpy and strlcat are now called sg_strlcpy and sg_strlcat and are always included. Fix saidar and statgrab to use the new API.
Add prototype for get_svr_from_bsd, and make it take and return const char *.
I like copy_string. We should use it EVERYWHERE. Also, the name needed changing.
Fix a bunch of warnings on the BSD's.
atoll's a static helper function; it shouldn't be in the header.
Add support for DragonFly BSD 1.0. Also a minor tweak to the network interface code to make it more portable.
get_kvm() only on FreeBSD.
kvm is now only needed for FreeBSD, so change defines accordingly.
Finish support for OpenBSD. Get disknames out of sysctl as well for Disk IO. Fix memory/page/swap stats to use get_uvmexp in tools.c (same as NetBSD).
A whole bunch of minor cosmetic changes.
Alter the licensing of libstatgrab. The library part is now under the LGPL, whilst the tools/examples are under the GPL. Both licenses are included in the distribution (and are both now in CVS). Also made a minor alteration to the webpage where it said everything was licensed under the GPL.
Added strlcat/strlcpy (taken from openssh). Added a #define for both, and also atoll which we appear to of forgotten about when it was written. Removed that #ifdef around get_ll_match as atoll will now always be defined.
Initial support for NetBSD. This adds NetBSD support for everything except diskio stats (since they're even more disturbingly complex to get at on NetBSD than the three OSs we already support). Tested against NetBSD 1.6 on i386.
Add a helper function for opening the kvm handle. This removes a little bit of duplicated code, and means that we don't open and close kvm (which can potentially be quite expensive) each time we use it. This will also be useful for NetBSD.
Remove headers from tools.h that the prototypes don't need (since they're included elsewhere where needed). Include tools.h in tools.c, so we get warnings if the prototypes are wrong.
Tidy up of lots of little things. :)
Make the functions that use atoll have a #ifdef HAVE_ATOLL around them. I did this because freebsd doesn't have this function, and it doesn't need to run any of the functions in tools.h that uses them.
Removed getting of some data we didn't really need or use. Updated page_stats to work with linux. Fixed tools.h to compile nicely :)
Made network stats work with linux.
Useful tools, currently only one function. Function takes a file pointer and will read threw it until it hits a passed string. It will return that line.
This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.