xref: /illumos-gate/usr/src/man/man3lib/libsysevent.3lib (revision d81537f42f656d7d5d57dc138f876c0c9bfeff87)
te
Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
Copyright 2019 Joyent, Inc.
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
LIBSYSEVENT 3LIB "July 15, 2019"
NAME
libsysevent - system event interface library
SYNOPSIS

cc [ flag... ] file... -lsysevent [ library... ]
#include <libsysevent.h>
DESCRIPTION

Functions in this library extract specific identifier, publisher, and attribute information from a system event (sysevent) handle, defined as sysevent_t, and allow privileged user-level applications to queue system events for delivery to the system event daemon, syseventd(8).

The libsysevent interfaces do not work at all in non-global zones.

For a list of events, please see sysevents(3SYSEVENT). The actual events and their payload, unlike the library interfaces, are considered private to the system and subject to change at any time.

INTERFACES

The shared object libsysevent.so.1 provides the public interfaces defined below. See Intro(3) for additional information on shared object interfaces.

sysevent_bind_handle sysevent_free
sysevent_get_attr_list sysevent_get_class_name
sysevent_get_pid sysevent_get_pub_name
sysevent_get_seq sysevent_get_size
sysevent_get_subclass_name sysevent_get_time
sysevent_get_vendor_name sysevent_post_event
sysevent_subscribe_event sysevent_unbind_handle
sysevent_unsubscribe_event
FILES
/usr/lib/libsysevent.so.1

shared object

/usr/lib/64/libsysevent.so.1

64-bit shared object

ATTRIBUTES

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
Interface Stability Committed
MT-Level MT-Safe
SEE ALSO

Intro (3), attributes (7), syseventd (8)