Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-07-15 | powerpc64 has the sysctl's for power control, so it can use the | Theo de Raadt | |
apmd/apm combo for -L/-H and such. (it gets all the rest of the mess too) ok kettenis | |||
2019-06-28 | When system calls indicate an error they return -1, not some arbitrary | Theo 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-01 | usage if there's extra arguments. ok kn | Ted Unangst | |
2019-01-23 | enable the apm(4) programs on arm64 | Peter Hessler | |
previous version OK deraadt@ patrick@ OK jsg@ | |||
2018-08-14 | Drop 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-23 | Cleanup 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-03 | Retire zaurus, as it hasn't made the EABI jump and will be permanently broken | Philip Guenther | |
shortly when we use the hardware thread register in userland | |||
2016-09-01 | chainsaw sparc | Theo de Raadt | |
2016-03-30 | for some time now mandoc has not required MLINKS to function | Jason 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-01 | only pledge if in doing-work-via-daemon mode | Theo de Raadt | |
2015-10-28 | By hoisting sysctl hw.cpuspeed towards the top, it is possible to | Theo de Raadt | |
pledge "stdio rpath wpath cpath unix". I wonder what we can do in apmd... | |||
2015-10-11 | Userspace doesn't need to use SUN_LEN(): connect() and bind() must accept | Philip Guenther | |
sizeof(struct sockaddr_un), so do the simple, portable thing. Also convert some strncpy() to strlcpy() ok deraadt@ | |||
2015-08-04 | tweak previous; ok deraadt | Jason McIntyre | |
2015-08-04 | Clarify how ACPI unhibernate works, as well as expand a bit on visual | Mike Larkin | |
feedback that may be presented to the user during unhibernate/resume. suggested by espie@ | |||
2015-01-28 | jcs found another remnant of cool running mode | Ted Unangst | |
2015-01-16 | Replace <sys/param.h> with <limits.h> and other less dirty headers where | Theo 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-17 | remove -C from usage(); | Jason McIntyre | |
2014-10-17 | fewer lies in the docs regarding performance modes after recent changes. | Ted Unangst | |
2014-01-21 | obvious .Pa fixes; found with mandocdb(8) | Ingo Schwarze | |
2012-07-11 | improve messages for suspend/hibernate | Theo de Raadt | |
2012-03-30 | tweak FILES and HISTORY; | Jason McIntyre | |
2012-03-30 | document ZZZ; ok deraadt | Jason McIntyre | |
2012-03-26 | Add hibernate request support. Also installs a ZZZ binary for the | Theo de Raadt | |
shortcut. ok mlarkin miod | |||
2010-09-19 | more wacky macro fixing; | Jason McIntyre | |
2010-02-28 | build for loongson; ok miod@ jasper@ matthieu@ | Otto Moerbeek | |
2009-10-30 | when 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-22 | write UNIX-domain in a more consistent way; while here, replace a | Igor Sobrado | |
few remaining ".Tn UNIX" macros with ".Ux" ones. pointed out by ratchov@, thanks! ok jmc@ | |||
2009-10-22 | use the UNIX-related macros (.At and .Ux) where appropriate. | Igor Sobrado | |
ok jmc@ | |||
2008-08-11 | Build apm(8) and apmd(8) on sparc64. | Mark Kettenis | |
pointed out by deraadt@ | |||
2007-12-05 | make description of -A and -C more consistent; | Jason McIntyre | |
help/ok tedu | |||
2007-05-31 | convert to new .Dd format; | Jason McIntyre | |
2006-06-11 | change "apmd not running" to "cannot connect to apmd" in error message | Nikolay Sturm | |
as it could be a permission problem as well, pr 5151 ok deraadt | |||
2006-05-17 | same typo fix that ian just fixed in apmd.8; | Jason McIntyre | |
2006-05-10 | fail zzz w/ a reasonable error msg if apmd is not running; found by deraadt@ | Michael Shalayeff | |
2006-04-12 | If /dev/apm does not respond, use a fake (pre-built) response packet | Theo 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-15 | consistently use power *states* and performance *modes* | Nikolay Sturm | |
ok beck, mickey | |||
2006-03-14 | install these on amd64 | Nikolay Sturm | |
even though amd64 does not have apm support, this change permits hw.setperf manipulations via apm/apmd | |||
2006-03-07 | Clone documentation for -C and -A options from apmd(8); otherwise they look | Theo de Raadt | |
terribly naked in here | |||
2006-03-06 | failure to connect to apmd socket -- get status from the /dev/apm directly | Michael Shalayeff | |
2006-02-26 | spacing; from ray lai | Jason McIntyre | |
ok mickey | |||
2006-01-28 | be 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-19 | prompted 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-02 | sort options and kill duplicate -C entry; | Jason McIntyre | |
2005-12-02 | sync to usage in man page | Theo de Raadt | |
2005-12-02 | Modify automatic performance adjustment mode so that the cpu is set | Bob 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-23 | permit apmd to run on systems without apm support | Nikolay Sturm | |
let apmd control hw.setperf manually or dynamically tested by Chris Kuethe and beck@, 'get it in' deraadt@ | |||
2005-11-15 | move the REFERENCES stuff into SEE ALSO; | Jason McIntyre | |
2005-11-15 | sync usage() w/ man page; | Jason McIntyre | |
2005-11-15 | sort SYNOPSIS; | Jason McIntyre | |
2005-03-30 | spacing | Theo de Raadt | |