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.