summaryrefslogtreecommitdiffstats
path: root/usr.sbin/apmd
Commit message (Collapse)AuthorAgeFilesLines
* Don't generate input() since it's not used.brucec2010-11-221-0/+1
|
* Remove extraneous Aq.joel2010-11-071-1/+1
|
* mdoc: drop even more redundant .Pp callsuqs2010-10-191-2/+0
| | | | | | No change in rendered output, less mandoc lint warnings. Tool provided by: Nobuyuki Koganemaru n-kogane at syd.odn.ne.jp
* For consistency, cast result of getpid() to longkevlo2010-08-311-1/+1
|
* - Fix terminating argument to execl(3), sizeof(NULL) != sizeof(char *)uqs2010-05-193-23/+11
| | | | | | | | | | | 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
* Sync apmd(8) with DragonflyBSD, bringing WARNS to 3uqs2010-05-146-40/+68
| | | | Reviewed by: ed (partial, long time ago)
* The last big commit: let usr.sbin/ use WARNS=6 by default.ed2010-01-021-0/+2
|
* getopt(3) returns -1, not EOF when out of args.kevlo2007-02-052-2/+2
|
* POWERSTATECHANGE was misspelled.mdodd2005-03-241-1/+1
|
* Expand *n't contractions.ru2005-02-131-1/+1
|
* Fixed formatting in the AUTHORS section.ru2005-01-181-0/+1
|
* Sort sections.ru2005-01-181-11/+11
|
* Eliminated double whitespace.ru2004-07-031-1/+1
|
* Mechanically kill hard sentence breaks.ru2004-07-021-7/+14
|
* Mark APM manpages as i386-only.ru2004-01-212-1/+2
|
* Use separate events for resume from standby and suspend in the apm(4)njl2003-12-301-3/+7
| | | | | | 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.
* - Set close on exec flag for device file descriptors.mdodd2003-06-221-0/+11
| | | | | | | - Reset signal handlers in event_cmd_exec_act(). PR: i386/35182 Submitted by: Daniel O'Connor <darius@dons.net.au>
* - Don't ignore SIGTERM.mdodd2003-06-222-4/+20
| | | | | | | | - 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>
* o BATTTIME and BATTPERCENT are 'int' not 'str'.maxim2003-06-161-1/+1
| | | | | | PR: bin/48793 Submitted by: Stefan Farfeleder <stefan@fafoe.dyndns.org> MFC after: 2 week
* include string.h for memcmp declearationimp2003-06-091-0/+1
|
* english(4) police.schweikh2002-12-271-1/+1
|
* The .Nm utilitycharnier2002-07-141-9/+15
|
* de-__P()alfred2002-07-111-4/+4
|
* Handle snprintf() returning < 0 (not just -1)brian2001-08-201-1/+1
| | | | MFC after: 2 weeks
* Handle snprintf() returning -1.brian2001-08-201-1/+5
| | | | MFC after: 2 weeks
* mdoc(7) police:ru2001-08-071-5/+3
| | | | | | | 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.
* Perform a major cleanup of the usr.sbin Makefiles.obrien2001-07-201-2/+1
| | | | | 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.
* Remove GCC'isms in CFLAGS.obrien2001-07-201-1/+1
|
* Remove whitespace at EOL.dd2001-07-151-12/+12
|
* Add battery state monitoring to apmd.nsayer2001-05-154-8/+238
| | | | | | | | | | | | | | | | | | | | | | 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.
* - Backout botched attempt to introduce MANSECT feature.ru2001-03-261-0/+2
| | | | - MAN[1-9] -> MAN.
* Set the default manual section for usr.sbin/ to 8.ru2001-03-201-2/+0
|
* Check strdup() return valuesjedgar2001-01-202-4/+14
| | | | Reviewed by: kris
* mdoc(7) police: add missing .Ed call.ru2001-01-181-0/+1
|
* Prepare for mdoc(7)NG.ru2000-12-271-2/+2
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-21/+21
|
* Don't forget to clean y.output. Most files generated by yacc are cleanedbde2000-05-151-7/+5
| | | | | | automatically, but not this one. Fixed some style bugs.
* Remove Xr to apmconf(8) since it got replaced in total by apm(8).asmodai2000-01-231-2/+1
|
* Spelling fix.mpp1999-10-301-6/+2
| | | | | | | Also fix a minor mdoc style problem that I noticed. PR: bin/14589 Submitted by:hristian Weisgerber <naddy@mips.rhein-neckar.de>
* Fix warning: return type of `main' is not `int'peter1999-09-151-1/+1
|
* Fix debut version to 3.3, not 4.0.iwasaki1999-09-111-1/+1
|
* Handle CAPABILITIESCHANGE event.iwasaki1999-09-111-0/+2
| | | | Document USERSTANDBYREQ and CAPABILITIESCHANGE events to apmd manpage.
* $Header$ -> $FreeBSD$peter1999-08-281-1/+1
|
* $Id$ -> $FreeBSD$peter1999-08-287-7/+7
|
* Fix typo ($Id: ... % --> $Id: ... $).iwasaki1999-07-101-1/+1
|
* The apmd package provides a means of handling various APM events fromiwasaki1999-07-108-0/+1697
userland code. Using apmd.conf, the apmd(8) configuration file, you can select the APM events to be handled from userland and specify the commands for a given event, allowing APM behaviour to be configured flexibly. Have Fun! Submitted by: iwasaki, KOIE Hidetaka <hide@koie.org> Reviewed by: -hackers, -mobile and bsd-nomads ML folks. Contributed by: Warner Losh <imp@FreeBSD.org>, Hiroshi Yamashita <bluemoon@msj.biglobe.ne.jp>, Yoshihiko SARUMARU <mistral@imasy.or.jp>, Norihiro Kumagai <kuma@nk.rim.or.jp>, NAKAGAWA Yoshihisa <nakagawa@jp.FreeBSD.org>, and Nick Hilliard <nick@foobar.org>.
OpenPOWER on IntegriCloud