aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/apmd
Commit message (Collapse)AuthorAgeFilesLines
* Add META_MODE support.Simon J. Gerraty2015-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 Notes: svn path=/head/; revision=284345
| * Merge sync of headSimon J. Gerraty2015-05-271-2/+1
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge head from 7/28Simon J. Gerraty2014-08-191-8/+8
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * \ Merge from headSimon J. Gerraty2013-09-051-4/+4
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=255263
| * \ \ Sync from headSimon J. Gerraty2012-11-041-3/+3
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242545
| * | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | Convert usr.sbin to LIBADDBaptiste Daroussin2014-11-251-2/+1
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275054
* | | | use .Mt to mark up email addresses consistently (part2)Baptiste Daroussin2014-06-201-8/+8
| |_|/ |/| | | | | | | | | | | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de> Notes: svn path=/head/; revision=267668
* | | Improve compatibility with recent flex from flex.sourceforge.net.Jung-uk Kim2013-05-031-4/+4
| |/ |/| | | | | Notes: svn path=/head/; revision=250227
* | mdoc: avoid nested displays. Fixes mandoc warnings.Joel Dahl2012-06-131-3/+3
|/ | | | Notes: svn path=/head/; revision=237015
* mdoc: correct .Bd/.Bl arguments.Joel Dahl2012-03-261-1/+1
| | | | | | | Reviewed by: brueffer Notes: svn path=/head/; revision=233522
* Don't generate input() since it's not used.Rebecca Cran2010-11-221-0/+1
| | | | Notes: svn path=/head/; revision=215676
* Remove extraneous Aq.Joel Dahl2010-11-071-1/+1
| | | | Notes: svn path=/head/; revision=214907
* mdoc: drop even more redundant .Pp callsUlrich Spörlein2010-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 Notes: svn path=/head/; revision=214054
* For consistency, cast result of getpid() to longKevin Lo2010-08-311-1/+1
| | | | Notes: svn path=/head/; revision=212048
* - Fix terminating argument to execl(3), sizeof(NULL) != sizeof(char *)Ulrich Spörlein2010-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 Notes: svn path=/head/; revision=208289
* Sync apmd(8) with DragonflyBSD, bringing WARNS to 3Ulrich Spörlein2010-05-146-40/+68
| | | | | | | Reviewed by: ed (partial, long time ago) Notes: svn path=/head/; revision=208075
* The last big commit: let usr.sbin/ use WARNS=6 by default.Ed Schouten2010-01-021-0/+2
| | | | Notes: svn path=/head/; revision=201390
* getopt(3) returns -1, not EOF when out of args.Kevin Lo2007-02-052-2/+2
| | | | Notes: svn path=/head/; revision=166509
* POWERSTATECHANGE was misspelled.Matthew N. Dodd2005-03-241-1/+1
| | | | Notes: svn path=/head/; revision=144043
* Expand *n't contractions.Ruslan Ermilov2005-02-131-1/+1
| | | | Notes: svn path=/head/; revision=141846
* Fixed formatting in the AUTHORS section.Ruslan Ermilov2005-01-181-0/+1
| | | | Notes: svn path=/head/; revision=140443
* Sort sections.Ruslan Ermilov2005-01-181-11/+11
| | | | Notes: svn path=/head/; revision=140442
* Eliminated double whitespace.Ruslan Ermilov2004-07-031-1/+1
| | | | Notes: svn path=/head/; revision=131531
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-7/+14
| | | | Notes: svn path=/head/; revision=131500
* Mark APM manpages as i386-only.Ruslan Ermilov2004-01-212-1/+2
| | | | Notes: svn path=/head/; revision=124786
* Use separate events for resume from standby and suspend in the apm(4)Nate Lawson2003-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. Notes: svn path=/head/; revision=124003
* - Set close on exec flag for device file descriptors.Matthew N. Dodd2003-06-221-0/+11
| | | | | | | | | | - Reset signal handlers in event_cmd_exec_act(). PR: i386/35182 Submitted by: Daniel O'Connor <darius@dons.net.au> Notes: svn path=/head/; revision=116668
* - Don't ignore SIGTERM.Matthew N. Dodd2003-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> Notes: svn path=/head/; revision=116666
* o BATTTIME and BATTPERCENT are 'int' not 'str'.Maxim Konovalov2003-06-161-1/+1
| | | | | | | | | PR: bin/48793 Submitted by: Stefan Farfeleder <stefan@fafoe.dyndns.org> MFC after: 2 week Notes: svn path=/head/; revision=116442
* include string.h for memcmp declearationWarner Losh2003-06-091-0/+1
| | | | Notes: svn path=/head/; revision=116074
* english(4) police.Jens Schweikhardt2002-12-271-1/+1
| | | | Notes: svn path=/head/; revision=108317
* The .Nm utilityPhilippe Charnier2002-07-141-9/+15
| | | | Notes: svn path=/head/; revision=99968
* de-__P()Alfred Perlstein2002-07-111-4/+4
| | | | Notes: svn path=/head/; revision=99800
* Handle snprintf() returning < 0 (not just -1)Brian Somers2001-08-201-1/+1
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=81982
* Handle snprintf() returning -1.Brian Somers2001-08-201-1/+5
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=81977
* mdoc(7) police:Ruslan Ermilov2001-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. Notes: svn path=/head/; revision=81251
* Perform a major cleanup of the usr.sbin Makefiles.David E. O'Brien2001-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. Notes: svn path=/head/; revision=80029
* Remove GCC'isms in CFLAGS.David E. O'Brien2001-07-201-1/+1
| | | | Notes: svn path=/head/; revision=80022
* Remove whitespace at EOL.Dima Dorfman2001-07-151-12/+12
| | | | Notes: svn path=/head/; revision=79755
* Add battery state monitoring to apmd.Nick Sayer2001-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. Notes: svn path=/head/; revision=76611
* - Backout botched attempt to introduce MANSECT feature.Ruslan Ermilov2001-03-261-0/+2
| | | | | | | - MAN[1-9] -> MAN. Notes: svn path=/head/; revision=74816
* Set the default manual section for usr.sbin/ to 8.Ruslan Ermilov2001-03-201-2/+0
| | | | Notes: svn path=/head/; revision=74532
* Check strdup() return valuesChris D. Faulhaber2001-01-202-4/+14
| | | | | | | Reviewed by: kris Notes: svn path=/head/; revision=71277
* mdoc(7) police: add missing .Ed call.Ruslan Ermilov2001-01-181-0/+1
| | | | Notes: svn path=/head/; revision=71221
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-271-2/+2
| | | | Notes: svn path=/head/; revision=70403
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-21/+21
| | | | Notes: svn path=/head/; revision=68965
* Don't forget to clean y.output. Most files generated by yacc are cleanedBruce Evans2000-05-151-7/+5
| | | | | | | | | automatically, but not this one. Fixed some style bugs. Notes: svn path=/head/; revision=60601
* Remove Xr to apmconf(8) since it got replaced in total by apm(8).Jeroen Ruigrok van der Werven2000-01-231-2/+1
| | | | Notes: svn path=/head/; revision=56450
* Spelling fix.Mike Pritchard1999-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> Notes: svn path=/head/; revision=52688