summaryrefslogtreecommitdiff
path: root/usr.sbin/apm/apm.c
AgeCommit message (Expand)Author
2021-04-06Make apm(8) report apmd(8) failurekn
2020-09-23Zap code remnants of the "cool running mode" (removed in 2014)Jeremie Courreges-Anglas
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
2019-03-01usage if there's extra arguments. ok knTed Unangst
2018-08-14Drop unnecessary pledge(2) promises on apm(8):Ricardo Mestre
2017-07-23Cleanup apm:anton
2015-11-01only pledge if in doing-work-via-daemon modeTheo de Raadt
2015-10-28By hoisting sysctl hw.cpuspeed towards the top, it is possible toTheo de Raadt
2015-10-11Userspace doesn't need to use SUN_LEN(): connect() and bind() must acceptPhilip Guenther
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
2014-10-17remove -C from usage();Jason McIntyre
2012-07-11improve messages for suspend/hibernateTheo de Raadt
2012-03-30document ZZZ; ok deraadtJason McIntyre
2012-03-26Add hibernate request support. Also installs a ZZZ binary for theTheo de Raadt
2009-10-30when used with incorrect flags, zzz(8) should call zzusage(void)Igor Sobrado
2006-06-11change "apmd not running" to "cannot connect to apmd" in error messageNikolay Sturm
2006-05-10fail zzz w/ a reasonable error msg if apmd is not running; found by deraadt@Michael Shalayeff
2006-04-12If /dev/apm does not respond, use a fake (pre-built) response packetTheo de Raadt
2006-03-15consistently use power *states* and performance *modes*Nikolay Sturm
2006-03-06failure to connect to apmd socket -- get status from the /dev/apm directlyMichael Shalayeff
2006-02-26spacing; from ray laiJason McIntyre
2006-01-28be less verbose:Nikolay Sturm
2006-01-19prompted by deraadt:Nikolay Sturm
2005-12-02sync to usage in man pageTheo de Raadt
2005-12-02Modify automatic performance adjustment mode so that the cpu is setBob Beck
2005-11-23permit apmd to run on systems without apm supportNikolay Sturm
2005-11-15sync usage() w/ man page;Jason McIntyre
2005-03-30spacingTheo de Raadt
2005-03-29Allow an apm implementation to return -1 in the minutes_left field of theMiod Vallat
2003-07-30indents; jfb okTheo de Raadt
2003-06-11some ansification, some de-registerTheo de Raadt
2002-09-06put some code after default:Theo de Raadt
2001-11-14On macppc, print the recharge time estimate as a recharge time estimate, notMiod Vallat
2001-07-06cleanup and knfMichael Shalayeff
2001-07-05remove -d, fix manual, document -s option; mostly from Kevin Steves <stevesk@...Michael Shalayeff
1998-10-29provide an option to retreive battery life estimate in minutesMichael Shalayeff
1997-09-12Kill extra newline in err()/warn().Todd C. Miller
1996-04-29Pull in John Kohl's most recent (15Apr96) APM and PCMCIA workhvozda