beautypg.com

APC UPS control system User Manual

Page 14

background image

- ifdef code in apcaccess that tries to write in the shared memory

buffer.

- Applied Adam’s patch for fixing the pthreads dependencies in asys.c
- Tweak the patch a bit hopefully so that OpenBSD will work.
- Made a sweep through quite a few files updating the copyright,

eliminating the disclaimer (now in DISCLAIMER), and adding as many
astrncpy() and astrncat()s as I could find. There still remain some
drivers and the cgi code to do.

- Implemented true/false and bool. Started implementing it in many of

the files I touched.

- Updated the net driver and did a fairly good testing of it.
- Made apcupsd remain in the foreground when doing a kill power.
- Eliminated some of the error messages during kill power by not

doing useless things.

- Added back code to print what is happening during kill power

in the USB code.

- Corrected a few of the USB error messages that could have been

missleading or confusing.

- Eliminated some inappropriate usages of size_t.
- Integrated a number of updates into the manual, particularly from

Adam.

- If the IP address is 0.0.0.0 force it to localhost in apcaccess.
- Integrat Thomas Habets’ changes to keep connect() from blocking

in apcnet.c so that apcupsd can service more slaves.

- Ensure that stdin/out/err are allocated in daemon_start() of apcuspd.c
- Update snmp.c with bug fix from Bacula.
- Bill has made numerous changes to improve the code such as adding

consts where appropriate.

----> Release 3.10.13 20Apr04
- Added code to support net snmp configured with --enable-net-snmp

based on patch sent by Sander Siemonsma.

- Build smtp on Unix systems.
- Update to most current smtp and make it easier to configure

for apcupsd or Bacula

- Start implementing native Win32 version.
- Rename cmd - ups_event and cmd_msg - event_msg
- Add user supplied code to make apcaccess read the conf file and

self configure to proper port. Thanks to Martin Flack for this
patch.

- Start simplifying the Copyright and making the dates current.
- Rework the net driver. It was really in poor shape.
- Replace sprintf with asnprint. Replace strcpy with astrncpy
- Apply a fix supplied by Jim Pick where syslog releases the

usb port and then re-attaches it to /dev/log.

- I finally took a careful look at the old master/slave networking

code as well as ran it here, and it was sadly broken. Hopefully
this commit fixes the problems.

- Fix a few string functions using the new routines.
- Added asys.c imported from Bacula, which contains a number of

simple system routines such as astrncpy(), ...

13