History log of /freebsd-10.1-release/usr.sbin/apmd/
Revision Date Author Comments
272461 03-Oct-2014 gjb

Copy stable/10@r272459 to releng/10.1 as part of
the 10.1-RELEASE process.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


250227 04-May-2013 jkim

Improve compatibility with recent flex from flex.sourceforge.net.


237015 13-Jun-2012 joel

mdoc: avoid nested displays. Fixes mandoc warnings.


233522 26-Mar-2012 joel

mdoc: correct .Bd/.Bl arguments.

Reviewed by: brueffer


215676 22-Nov-2010 brucec

Don't generate input() since it's not used.


214907 07-Nov-2010 joel

Remove extraneous Aq.


214054 19-Oct-2010 uqs

mdoc: drop even more redundant .Pp calls

No change in rendered output, less mandoc lint warnings.

Tool provided by: Nobuyuki Koganemaru n-kogane at syd.odn.ne.jp


212048 31-Aug-2010 kevlo

For consistency, cast result of getpid() to long


208289 19-May-2010 uqs

- Fix terminating argument to execl(3), sizeof(NULL) != sizeof(char *)
might be true on some systems [1]
- Rewrite gotos to use return directly
- Some spelling fixes
- Reduce unneeded/non-standard Makefile settings

Requested by: bde, imp [1]
Explanation provided by: bde [1]
Reviewed by: imp


208075 14-May-2010 uqs

Sync apmd(8) with DragonflyBSD, bringing WARNS to 3

Reviewed by: ed (partial, long time ago)


201390 02-Jan-2010 ed

The last big commit: let usr.sbin/ use WARNS=6 by default.


166509 05-Feb-2007 kevlo

getopt(3) returns -1, not EOF when out of args.


144043 24-Mar-2005 mdodd

POWERSTATECHANGE was misspelled.


141846 13-Feb-2005 ru

Expand *n't contractions.


140443 18-Jan-2005 ru

Fixed formatting in the AUTHORS section.


140442 18-Jan-2005 ru

Sort sections.


131531 03-Jul-2004 ru

Eliminated double whitespace.


131500 02-Jul-2004 ru

Mechanically kill hard sentence breaks.


124786 21-Jan-2004 ru

Mark APM manpages as i386-only.


124003 30-Dec-2003 njl

Use separate events for resume from standby and suspend in the apm(4)
case so that if devices need different initialization, we can key off
this in the rc scripts (currently unused). Also update the man page
which is a 100% duplicate of the rc scripts.


116668 22-Jun-2003 mdodd

- Set close on exec flag for device file descriptors.
- Reset signal handlers in event_cmd_exec_act().

PR: i386/35182
Submitted by: Daniel O'Connor <darius@dons.net.au>


116666 22-Jun-2003 mdodd

- Don't ignore SIGTERM.
- Add a command line switch to trigger POWERSTATECHANGE actions on
un-reported power state changes.

PR: i386/32251
Submitted by: Walter C. Pelissero <walter@pelissero.org>


116442 16-Jun-2003 maxim

o BATTTIME and BATTPERCENT are 'int' not 'str'.

PR: bin/48793
Submitted by: Stefan Farfeleder <stefan@fafoe.dyndns.org>
MFC after: 2 week


116074 09-Jun-2003 imp

include string.h for memcmp declearation


108317 27-Dec-2002 schweikh

english(4) police.


99968 14-Jul-2002 charnier

The .Nm utility


99800 11-Jul-2002 alfred

de-__P()


81982 20-Aug-2001 brian

Handle snprintf() returning < 0 (not just -1)

MFC after: 2 weeks


81977 20-Aug-2001 brian

Handle snprintf() returning -1.

MFC after: 2 weeks


81251 07-Aug-2001 ru

mdoc(7) police:

Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text.
Not only this slows down the mdoc(7) processing significantly, but it also
has an undesired (in this case) effect of disabling hyphenation within the
entire enclosed block.


80029 20-Jul-2001 obrien

Perform a major cleanup of the usr.sbin Makefiles.
These are not perfectly in agreement with each other style-wise, but they
are orders of orders of magnitude more consistent style-wise than before.


80022 20-Jul-2001 obrien

Remove GCC'isms in CFLAGS.


79755 15-Jul-2001 dd

Remove whitespace at EOL.


76611 15-May-2001 nsayer

Add battery state monitoring to apmd.

The new syntax available in the config file is:

apm_battery [0-9]+(%|[Mm) (dis|)charging { ... }

The stuff in the braces is the same as the existing case. nn% checks for
a certain percentage of life remaining and nnM checks for a cerain
number of minutes remaining. Specifying "discharge" means that you're
interested in knowing when the battery reaches a certain level while AC
power is off, "charging" the opposite.

The man page needs to be updated.

The code can be fooled. If you SIGHUP the daemon and the battery level
matches a rule it will be performed once per SIGHUP. If the battery
level matches a rule and you repeatedly apply and take away AC power,
the rule will be run once per occurance. This, however, is a feature.
:-) The code also only runs when select() times out, so getting APM
events more often than the timeout interval will result in the rules not
being run. These are things that remain to be overcome.


74816 26-Mar-2001 ru

- Backout botched attempt to introduce MANSECT feature.
- MAN[1-9] -> MAN.


74532 20-Mar-2001 ru

Set the default manual section for usr.sbin/ to 8.


71277 20-Jan-2001 jedgar

Check strdup() return values

Reviewed by: kris


71221 18-Jan-2001 ru

mdoc(7) police: add missing .Ed call.


70403 27-Dec-2000 ru

Prepare for mdoc(7)NG.


68965 20-Nov-2000 ru

mdoc(7) police: use the new features of the Nm macro.


60601 15-May-2000 bde

Don't forget to clean y.output. Most files generated by yacc are cleaned
automatically, but not this one.

Fixed some style bugs.


56450 23-Jan-2000 asmodai

Remove Xr to apmconf(8) since it got replaced in total by apm(8).


52688 30-Oct-1999 mpp

Spelling fix.

Also fix a minor mdoc style problem that I noticed.

PR: bin/14589
Submitted by:hristian Weisgerber <naddy@mips.rhein-neckar.de>


51287 15-Sep-1999 peter

Fix warning: return type of `main' is not `int'


51179 11-Sep-1999 iwasaki

Fix debut version to 3.3, not 4.0.


51163 11-Sep-1999 iwasaki

Handle CAPABILITIESCHANGE event.
Document USERSTANDBYREQ and CAPABILITIESCHANGE events to apmd manpage.


50488 28-Aug-1999 peter

$Header$ -> $FreeBSD$


50479 28-Aug-1999 peter

$Id$ -> $FreeBSD$


48737 10-Jul-1999 iwasaki

Fix typo ($Id: ... % --> $Id: ... $).


48731 10-Jul-1999 iwasaki

This commit was generated by cvs2svn to compensate for changes in r48730,
which included commits to RCS files with non-trunk default branches.