2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved. 2N/A * We leave stderr open so we can write debug/err messages to the SMF 2N/A * This function returns a pointer to the specified SMF property group for the 2N/A * specified SMF service. The caller is responsible for freeing the property 2N/A * group. On failure, the function returns NULL. 2N/A * This function takes a single string list and splits it into 2N/A * an string array (analogous to PERL split) 2N/A * The caller is responsible for freeing the array. 2N/A * This function merges two string arrays into a single array, removing any 2N/A * The caller is responsible for freeing the merged array. 2N/A for (
int j = 0; j <
n2; j++)
2N/A * This function joins all the strings in a string array into a single string 2N/A * Each element will be delimited by a comma 2N/A * The caller is responsible for freeing the joined string. 2N/A * First, figure out how much space we need to allocate to store the 2N/A * This function takes a dictionary name and event class and then uses 2N/A * libdiagcode to compute the MSG ID. We need this for looking up messages 2N/A * for the committed ireport.* events. For FMA list.* events, the MSG ID is 2N/A * is contained in the event payload. 2N/A * This function takes an event and extracts the bits of the event payload that 2N/A * are of interest to notification daemons and conveniently tucks them into a 2N/A * The caller is responsible for freeing ev_info and any contained strings and 2N/A * nvlists. A convenience function, nd_free_event_info(), is provided for this 2N/A * Hold event; class and payload will be valid for as long as 2N/A * we hold the event. 2N/A * Lookup the MSGID, event description and severity and KA URL 2N/A * For FMA list.* events we just pull it out of the the event nvlist. 2N/A * For all other events we call a utility function that computes the 2N/A * diagcode using the dict name and class.