Commit Graph

36 Commits

Author SHA1 Message Date
itojun
5f38ec918c daemon(3) has to be called prior to file descriptor setups. 2002-01-11 04:35:52 +00:00
thorpej
429c29847e Statements must follow labels. 2001-12-31 19:33:58 +00:00
enami
a88b4adee6 Zero clear the apm_power_info structure being passed to ioctl. 2001-09-15 02:42:26 +00:00
wiz
14dbdf5518 Negative exit code cleanup: Replace exit(-x) with exit(x).
As seen on tech-userlevel.
2001-04-06 11:13:45 +00:00
wiz
6542c07106 Xref apm 8, not 1. Whitespace fixes while I'm here. 2001-04-03 11:24:20 +00:00
cgd
25bdbb661e convert to use getprogname() 2001-02-19 23:22:40 +00:00
chuck
739ac42b5e be more picky about running /etc/apm/{battery,line} in response
to APM_POWER_CHANGE event.   some BIOS post this event periodically
while the battery is charging/discharging (no change in a/c state).
on these systems this prevents /etc/apm/{battery,line} from being
run multiple times.
2001-01-25 00:48:59 +00:00
lukem
0645f2f67b use explicit name rather than __progname in openlog 2001-01-11 01:34:28 +00:00
lukem
6ccf8e332e format the option descriptions in a more standard (and imho readable) style 2000-11-05 03:05:48 +00:00
jhawk
8c412633ff Check for lowbattery state (if running -l) when polling for state,
rather than just when receiving events. Thus, if events are not
working (for some unknown reason...), low-power shutdown will
still work.
2000-08-13 21:13:56 +00:00
mycroft
5ba0d0cdec Add a -v' option, and make various log messages depend on -d' or `-v'. 2000-03-04 21:27:17 +00:00
enami
04553a3a98 Kill the period in SEE ALSO. 2000-02-02 01:55:55 +00:00
jlam
2cda0d3aff Add 'l' to getopt-checked flags 2000-01-13 16:04:53 +00:00
hubertf
a27c7840ac mention /usr/share/examples/apm/script 1999-12-29 05:00:43 +00:00
garbled
37b2f44641 Enable build on sparc, and move manpage out of i386 specific directory 1999-12-15 20:34:03 +00:00
soren
4b5e002090 Do not force logging of status in the POWER_CHANGE case. Any
interesting changes will be noticed and printed by power_status().
1999-09-04 18:38:28 +00:00
thorpej
56c5efa335 Use pidfile(3). 1999-06-06 02:52:16 +00:00
garbled
d1407362ba More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:43:46 +00:00
mycroft
d77575d3c8 Clean up SYNOPSIS formatting. 1999-03-07 11:58:22 +00:00
christos
ac20cbee1c PR/6606: Johnny C. Lam: Add -l flag to apmd so that it suspends automagically
when the is a battery low event.
1998-12-19 15:27:58 +00:00
kenh
0c2d06b6ae Add support for running scripts for line power to battery transitions
(and vice versa).
1998-11-19 19:39:14 +00:00
lukem
786b86d71b use AF_LOCAL instead of AF_UNIX 1998-07-18 05:04:35 +00:00
lukem
f5bf267d90 enable WARNS=1 by default, but disable in unclean 3rd party code 1997-10-18 06:42:25 +00:00
lukem
e477b94d93 remove unnecessary externs 1997-10-17 04:57:31 +00:00
mikel
7e0384f892 replace -W flags in CFLAGS with WARNS?=1, cleanup 1997-10-03 05:39:03 +00:00
mikel
f06175c4c6 apm is new in 1.3, update HISTORY to say so 1997-10-03 05:37:05 +00:00
jtc
87f4ccd45f Fix files using old TNF copyright notice 1997-07-30 22:53:50 +00:00
mikel
2d7dc926c1 xref execve(2) not nonexistent execv(2), reorder xrefs 1997-07-11 04:36:16 +00:00
mrg
78033298f7 decend all subdirs for man pages. 1997-06-23 14:48:02 +00:00
christos
0aad9d4378 Makefile cleanups 1997-03-24 22:02:40 +00:00
jtk
46764eff41 PR # 3271: ignore SIGPIPE to avoid nasty clients causing apmd to die.
From Lennart Augustsson <augustss@cs.chalmers.se>.
1997-03-01 19:10:49 +00:00
jtc
e1cfddbd32 Copyright has been assigned to The NetBSD Foundation 1996-09-25 00:53:45 +00:00
jtk
179716e7b0 bug fix: set fromlen to sizeof(from) 1996-09-17 00:46:31 +00:00
jtk
9869120050 add -o and -m options for owner/group and mode of the socket 1996-09-13 01:10:14 +00:00
jtk
16cc3ce6e6 fix for consistent comment names 1996-08-30 02:37:32 +00:00
jtk
b86b695240 add Advanced Power Management driver
Includes bootstrap support from FreeBSD (Tatsumi HOSOKAWA and <ukai>)
1996-08-25 23:38:57 +00:00