summaryrefslogtreecommitdiff
path: root/usr.sbin/apm
AgeCommit message (Collapse)Author
2020-07-15powerpc64 has the sysctl's for power control, so it can use theTheo de Raadt
apmd/apm combo for -L/-H and such. (it gets all the rest of the mess too) ok kettenis
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
2019-03-01usage if there's extra arguments. ok knTed Unangst
2019-01-23enable the apm(4) programs on arm64Peter Hessler
previous version OK deraadt@ patrick@ OK jsg@
2018-08-14Drop unnecessary pledge(2) promises on apm(8):Ricardo Mestre
After we successfully connect to the unix socket created by apmd(8) all actions occur over fds so we can drop only to pledge("stdio"). The code path in the case that the required action is GETSTATUS, and we couldn't connect to the socket, then after open(2)/ioctl(2) the device /dev/apm directly we can pledge("stdio") as well since from here on down we only need to printf(3) messages. OK deraadt@
2017-07-23Cleanup apm:anton
- Zap trailing whitespace in license, noted by tb@ - Sort and align function prototypes - Add static and __dead when appropriate in order to compile using `clang -Wall` - Zap variable names from function prototypes, also noted by tb@ - Break long lines ok tb@
2016-09-03Retire zaurus, as it hasn't made the EABI jump and will be permanently brokenPhilip Guenther
shortly when we use the hardware thread register in userland
2016-09-01chainsaw sparcTheo de Raadt
2016-03-30for some time now mandoc has not required MLINKS to functionJason McIntyre
correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung
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
pledge "stdio rpath wpath cpath unix". I wonder what we can do in apmd...
2015-10-11Userspace doesn't need to use SUN_LEN(): connect() and bind() must acceptPhilip Guenther
sizeof(struct sockaddr_un), so do the simple, portable thing. Also convert some strncpy() to strlcpy() ok deraadt@
2015-08-04tweak previous; ok deraadtJason McIntyre
2015-08-04Clarify how ACPI unhibernate works, as well as expand a bit on visualMike Larkin
feedback that may be presented to the user during unhibernate/resume. suggested by espie@
2015-01-28jcs found another remnant of cool running modeTed Unangst
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2014-10-17remove -C from usage();Jason McIntyre
2014-10-17fewer lies in the docs regarding performance modes after recent changes.Ted Unangst
2014-01-21obvious .Pa fixes; found with mandocdb(8)Ingo Schwarze
2012-07-11improve messages for suspend/hibernateTheo de Raadt
2012-03-30tweak FILES and HISTORY;Jason McIntyre
2012-03-30document ZZZ; ok deraadtJason McIntyre
2012-03-26Add hibernate request support. Also installs a ZZZ binary for theTheo de Raadt
shortcut. ok mlarkin miod
2010-09-19more wacky macro fixing;Jason McIntyre
2010-02-28build for loongson; ok miod@ jasper@ matthieu@Otto Moerbeek
2009-10-30when used with incorrect flags, zzz(8) should call zzusage(void)Igor Sobrado
instead of usage(void). millert@ suggested checking __progname() against "zzz" to match existing code. ok millert@
2009-10-22write UNIX-domain in a more consistent way; while here, replace aIgor Sobrado
few remaining ".Tn UNIX" macros with ".Ux" ones. pointed out by ratchov@, thanks! ok jmc@
2009-10-22use the UNIX-related macros (.At and .Ux) where appropriate.Igor Sobrado
ok jmc@
2008-08-11Build apm(8) and apmd(8) on sparc64.Mark Kettenis
pointed out by deraadt@
2007-12-05make description of -A and -C more consistent;Jason McIntyre
help/ok tedu
2007-05-31convert to new .Dd format;Jason McIntyre
2006-06-11change "apmd not running" to "cannot connect to apmd" in error messageNikolay Sturm
as it could be a permission problem as well, pr 5151 ok deraadt
2006-05-17same typo fix that ian just fixed in apmd.8;Jason McIntyre
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
that can be printed. This makes apm(8) act the same whether talking to apmd(8) or directly to a (potentially non-functioning) /dev/apm. ok kettenis
2006-03-15consistently use power *states* and performance *modes*Nikolay Sturm
ok beck, mickey
2006-03-14install these on amd64Nikolay Sturm
even though amd64 does not have apm support, this change permits hw.setperf manipulations via apm/apmd
2006-03-07Clone documentation for -C and -A options from apmd(8); otherwise they lookTheo de Raadt
terribly naked in here
2006-03-06failure to connect to apmd socket -- get status from the /dev/apm directlyMichael Shalayeff
2006-02-26spacing; from ray laiJason McIntyre
ok mickey
2006-01-28be less verbose:Nikolay Sturm
- status does not provide any information, remove it - print battery status in one line ok beck, drahn, i386 tested by bernd
2006-01-19prompted by deraadt:Nikolay Sturm
manual performance mode -> low/high performance mode show cpuspeed in apm output ok beck, weingart man page bits ok jmc
2005-12-02sort options and kill duplicate -C entry;Jason McIntyre
2005-12-02sync to usage in man pageTheo de Raadt
2005-12-02Modify automatic performance adjustment mode so that the cpu is setBob Beck
to go fast if the power is connected and the battery is more than 15% charged, and when on batteries keeps setperf low unless needed. add a cool runnings mode option (-C) that does the previous behaviour of keeping the CPU as low as possible unless needed. ok deradt@, sturm@, "i like it's" djm@ henning@ and others.
2005-11-23permit apmd to run on systems without apm supportNikolay Sturm
let apmd control hw.setperf manually or dynamically tested by Chris Kuethe and beck@, 'get it in' deraadt@
2005-11-15move the REFERENCES stuff into SEE ALSO;Jason McIntyre
2005-11-15sync usage() w/ man page;Jason McIntyre
2005-11-15sort SYNOPSIS;Jason McIntyre
2005-03-30spacingTheo de Raadt