summaryrefslogtreecommitdiffstats
path: root/usr.sbin/apmd
Commit message (Collapse)AuthorAgeFilesLines
* It seems <sys/types.h> is a new prerequisite for <bitstring.h> afterpeter2016-05-243-1/+3
| | | | r300539. Attempt to fix the build for i386.
* MFHgjb2016-03-021-6/+0
|\ | | | | | | Sponsored by: The FreeBSD Foundation
| * DIRDEPS_BUILD: Regenerate without local dependencies.bdrewery2016-02-241-6/+0
| | | | | | | | | | | | | | | | These are no longer needed after the recent 'beforebuild: depend' changes and hooking DIRDEPS_BUILD into a subset of FAST_DEPEND which supports skipping 'make depend'. Sponsored by: EMC / Isilon Storage Division
* | Create a package for apm(8).gjb2016-01-211-0/+2
|/ | | | Sponsored by: The FreeBSD Foundation
* META_MODE: Remove DEP_MACHINE from Makefile.depend files.bdrewery2015-09-251-2/+0
| | | | | | This has not been needed since r246865 in projects/bmake. Sponsored by: EMC / Isilon Storage Division
* META_MODE: Remove DEP_RELDIR from Makefile.depend files.bdrewery2015-09-251-2/+0
| | | | | | This has not been needed since r284171 in projects/bmake. Sponsored by: EMC / Isilon Storage Division
* Add META_MODE support.sjg2015-06-131-0/+26
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * Merge sync of headsjg2015-05-271-2/+1
| |\ | |/ |/|
| * Merge head from 7/28sjg2014-08-191-8/+8
| |\
| * \ Merge from headsjg2013-09-051-4/+4
| |\ \
| | \ \
| | \ \
| *-. \ \ Sync from headsjg2012-11-041-3/+3
| |\ \ \ \
| * | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+25
| | |/ / / | |/| | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | Convert usr.sbin to LIBADDbapt2014-11-251-2/+1
| |_|_|/ |/| | | | | | | | | | | Reduce overlinking
* | | | use .Mt to mark up email addresses consistently (part2)bapt2014-06-201-8/+8
| |_|/ |/| | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de>
* | | Improve compatibility with recent flex from flex.sourceforge.net.jkim2013-05-031-4/+4
| |/ |/|
* | mdoc: avoid nested displays. Fixes mandoc warnings.joel2012-06-131-3/+3
|/
* mdoc: correct .Bd/.Bl arguments.joel2012-03-261-1/+1
| | | | Reviewed by: brueffer
* 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
OpenPOWER on IntegriCloud