1 Technical notes on my code submission of 05 Dec 00
5 - Fixed Win32 to work with simple signalling UPSes.
6 - Upgraded Win32 to CGYWIN 1.1.5.
7 - Fixed an Alpha Tru64 64/32 bit problem.
8 - Fixed the random incorrect on battery timers (I think).
9 - Upgraded to latest version of gcc
10 - Do much better argument checking in the .cgi programs. This
11 improves security (at least psychologically).
13 Changes submitted this submission:
14 - The new version of gcc caused a number of problems especially with
15 the #defines and varargs. As a consequence, all the error_aborts()
16 were changed. You must now explicitly put the number of message
17 substitutions on the Error_abortN() subroutine call.
18 - Added a make depend to the main Makefile in case the automatic
20 - Added a Makefile rule to build the apctest program for Windows.
21 - Moved the powerfail and logonfail to apcaction.c as Riccardo did
22 in 4.0. This required adding these subroutines to apctest.
23 - Removed the static declarations in apcaction.c in preparation for
25 - Added the ups variable as the first argument to log_event() in
27 - Added the ups argument to do_action().
28 - Moved a number of static variables to the ups structure.
29 - Corrected a problem with the on battery timers where the
30 last time on battery was not set because there was not a full
31 confirmation of on battery (i.e. a power outage of less than
32 5 seconds or a self test).
33 - Reindented apcstatus.c a bit so that the code can be more easily
34 read on an 80 character wide screen.
35 - Implemented a very crude form of serial port line status ioctl()
36 for Win32 to support simple signalling UPSes. Despite the limitations
37 of the Win32 API, it seems to work and implements most features for
38 most UPS/cable combinations.
39 - Enhancements to the manual.