History log of /freebsd-current/usr.sbin/apmd/apmd.c
Revision Date Author Comments
# eba230af 25-Sep-2023 John Baldwin <jhb@FreeBSD.org>

Purge more stray embedded $FreeBSD$ strings

These do not use __FBSDID but instead use bare char arrays.

Reviewed by: imp, emaste
Differential Revision: https://reviews.freebsd.org/D41957


# 4d846d26 10-May-2023 Warner Losh <imp@FreeBSD.org>

spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD

The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with: pfg
MFC After: 3 days
Sponsored by: Netflix


# 1de7b4b8 27-Nov-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

various: general adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 2-Clause license, however the tool I
was using misidentified many licenses so this was mostly a manual - error
prone - task.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

No functional change intended.


# 00774f35 23-May-2016 Peter Wemm <peter@FreeBSD.org>

It seems <sys/types.h> is a new prerequisite for <bitstring.h> after
r300539. Attempt to fix the build for i386.


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# 34759932 31-Aug-2010 Kevin Lo <kevlo@FreeBSD.org>

For consistency, cast result of getpid() to long


# cd0788e1 19-May-2010 Ulrich Spörlein <uqs@FreeBSD.org>

- Fix terminating argument to execl(3), sizeof(NULL) != sizeof(char *)
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


# 103e4932 14-May-2010 Ulrich Spörlein <uqs@FreeBSD.org>

Sync apmd(8) with DragonflyBSD, bringing WARNS to 3

Reviewed by: ed (partial, long time ago)


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# 1c6adfcf 05-Feb-2007 Kevin Lo <kevlo@FreeBSD.org>

getopt(3) returns -1, not EOF when out of args.


# 75b36243 23-Mar-2005 Matthew N. Dodd <mdodd@FreeBSD.org>

POWERSTATECHANGE was misspelled.


# 9ad4f2d0 21-Jun-2003 Matthew N. Dodd <mdodd@FreeBSD.org>

- Set close on exec flag for device file descriptors.
- Reset signal handlers in event_cmd_exec_act().

PR: i386/35182
Submitted by: Daniel O'Connor <darius@dons.net.au>


# f90445cf 21-Jun-2003 Matthew N. Dodd <mdodd@FreeBSD.org>

- Don't ignore SIGTERM.
- 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>


# 719b9dc1 14-May-2001 Nick Sayer <nsayer@FreeBSD.org>

Add battery state monitoring to apmd.

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.


# aecdf0eb 19-Jan-2001 Chris D. Faulhaber <jedgar@FreeBSD.org>

Check strdup() return values

Reviewed by: kris


# e46b89dc 14-Sep-1999 Peter Wemm <peter@FreeBSD.org>

Fix warning: return type of `main' is not `int'


# 97d92980 27-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


# d50a71bd 10-Jul-1999 Mitsuru IWASAKI <iwasaki@FreeBSD.org>

The apmd package provides a means of handling various APM events from
userland code. Using apmd.conf, the apmd(8) configuration file, you
can select the APM events to be handled from userland and specify the
commands for a given event, allowing APM behaviour to be configured
flexibly.

Have Fun!

Submitted by: iwasaki, KOIE Hidetaka <hide@koie.org>
Reviewed by: -hackers, -mobile and bsd-nomads ML folks.
Contributed by: Warner Losh <imp@FreeBSD.org>,
Hiroshi Yamashita <bluemoon@msj.biglobe.ne.jp>,
Yoshihiko SARUMARU <mistral@imasy.or.jp>,
Norihiro Kumagai <kuma@nk.rim.or.jp>,
NAKAGAWA Yoshihisa <nakagawa@jp.FreeBSD.org>, and
Nick Hilliard <nick@foobar.org>.