Add support for AIX 5.x - 9.x. Many thanks to Jens Rehsack <rehsack@googlemail.com> for providing the patch for this work. Thanks!
Fix problem with saidar crashing when window is rapidly resized. Done by moving the code out of the signal handler and in to the main loop, and just having a global flag set by the signal handler.
Hide cursor when possible.
Sort out curses detection. It'll now detect ncurses before curses, and cope with the header files being in include or include/ncurses. I think this will work in every case.
Colour is only supported if ncurses is being used.
Standout doesn't work on all displays, so use bold too.
Add support for coloured fields in saidar. Optionally enabled by using the new -c flag. Manpage updated with details. Mostly taken from a patch supplied by Angelina Carlton <debian@magma.ca>, but I made minor changes to layout and function.
Whitespace cleanup.
Simple hack to truncate disk/interface/mount names to fit in to the field. Before this they just overwrote stuff and it got messy. Hardly an elegant fix, btw ;)
Make size_conv deal with negative numbers too (it does happen :-).
Put back the dummy argument -- I know it's not used, but signal handlers have to have it.
Remove another unused parameter.
Fix when used percentage hits 100%.
More whitespace tidyup (spaces->tabs).
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".
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.
Fix a bunch of warnings on the BSD's.
Very minor fix to saidar. It happily accepted a negative number for it's delay flag - which wasn't overly useful :-)
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.
Replace duplicated code for dropping privileges with a library function that always drops setuid/setgid privileges.
Remove unused variable "gid".
Drop setuid for solaris.
Fix problem with -d flag in saidar. The line removed subtracted 1 from the delay. I guess at some point this was needed, but not now. So setting a delay of 1 resulted in a sleep 0 :-)
Remove a little bit of duplicated code.
Do the "don't update more than once a second" thing slightly differently; this avoids having it be unresponsive for 20 seconds if you type 20 spaces.
getopt returns -1 on completion, not EOF.
Fix type of ch.
Use curses' timeout() rather than select().
Do the divides a bit more safely :-)
Make saidar display the VM percentages for swap *or* memory if it can, rather than not displaying either if it can't get one or the other.
Only display the stats that are available (rather than bombing out if they aren't all available).
Added statgrab_init() This function just calls the get_kvm type functions so all special privilages can be dropped after this function has been called. It currently only does stuff on *bsd (and needs testing on netbsd). All other OS's will just have a function that returns 0 Solaris at somepoint may need to do something here so we can do the drive mappings.
Now behaves a little bit more like df with regard to percentages. This needs a better fix somewhere in libstatgrab really; we don't currently know anything about the reserved space.
Brain failure over a confusion with strncpy (thinking it worked like strlcpy)
Fix an annoying long hostname problem.
Disk percentage may be arguably more "right" than it is before. It's debatable, of course :)
Another stupid mistake. Now actually prints the program name :)
Tab problem in a fprintf and actually turn on the new command line options ;)
Added some usage flags, and a -v for version and -h for help.
Standard header, plus make it include the right curses.h dependent on what the configure system finds.
First release of saidar. This version works on all platforms, using ncurses fine. Bugs exist when linked against the solaris curses. (E.g. if while running saidar you hammer a key repeatedly, the screen no longer updates. This only happens with the solaris curses however) Saidar takes a single optional flag, "-d" and an argument of the delay in seconds. e.g. saidar -d 1 Will update the screen once a second (the fastest allowed update time). The default update it every 3 seconds. However, if you press any other key, it will update immidiately (unless its less than 1 second, in which case it will update at the earlist available time)
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.