Print this page
7928 Add support for SMF_EXIT_TEMP_TRANSIENT


   4  * The contents of this file are subject to the terms of the
   5  * Common Development and Distribution License (the "License").
   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
  24  * Copyright 2016 RackTop Systems.
  25  */
  26 
  27 #ifndef _LIBSCF_H
  28 #define _LIBSCF_H
  29 
  30 
  31 #include <stddef.h>
  32 #include <libnvpair.h>
  33 
  34 #ifndef NATIVE_BUILD
  35 #include <sys/secflags.h>
  36 #endif  /* NATIVE_BUILD */
  37 #include <sys/types.h>
  38 
  39 #ifdef  __cplusplus
  40 extern "C" {
  41 #endif
  42 
  43 typedef unsigned long scf_version_t;
  44 #define SCF_VERSION             1UL


 853  */
 854 const char *smf_state_to_string(int32_t);
 855 
 856 /*
 857  * Notification interfaces
 858  */
 859 int smf_notify_set_params(const char *, nvlist_t *);
 860 int smf_notify_get_params(nvlist_t **, nvlist_t *);
 861 int smf_notify_del_params(const char *, const char *, int32_t);
 862 
 863 /*
 864  * SMF exit status definitions
 865  */
 866 #define SMF_EXIT_OK               0
 867 #define SMF_EXIT_ERR_FATAL       95
 868 #define SMF_EXIT_ERR_CONFIG      96
 869 #define SMF_EXIT_MON_DEGRADE     97
 870 #define SMF_EXIT_MON_OFFLINE     98
 871 #define SMF_EXIT_ERR_NOSMF       99
 872 #define SMF_EXIT_ERR_PERM       100

 873 
 874 #ifdef  __cplusplus
 875 }
 876 #endif
 877 
 878 #endif  /* _LIBSCF_H */


   4  * The contents of this file are subject to the terms of the
   5  * Common Development and Distribution License (the "License").
   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
  24  * Copyright 2017 RackTop Systems.
  25  */
  26 
  27 #ifndef _LIBSCF_H
  28 #define _LIBSCF_H
  29 
  30 
  31 #include <stddef.h>
  32 #include <libnvpair.h>
  33 
  34 #ifndef NATIVE_BUILD
  35 #include <sys/secflags.h>
  36 #endif  /* NATIVE_BUILD */
  37 #include <sys/types.h>
  38 
  39 #ifdef  __cplusplus
  40 extern "C" {
  41 #endif
  42 
  43 typedef unsigned long scf_version_t;
  44 #define SCF_VERSION             1UL


 853  */
 854 const char *smf_state_to_string(int32_t);
 855 
 856 /*
 857  * Notification interfaces
 858  */
 859 int smf_notify_set_params(const char *, nvlist_t *);
 860 int smf_notify_get_params(nvlist_t **, nvlist_t *);
 861 int smf_notify_del_params(const char *, const char *, int32_t);
 862 
 863 /*
 864  * SMF exit status definitions
 865  */
 866 #define SMF_EXIT_OK               0
 867 #define SMF_EXIT_ERR_FATAL       95
 868 #define SMF_EXIT_ERR_CONFIG      96
 869 #define SMF_EXIT_MON_DEGRADE     97
 870 #define SMF_EXIT_MON_OFFLINE     98
 871 #define SMF_EXIT_ERR_NOSMF       99
 872 #define SMF_EXIT_ERR_PERM       100
 873 #define SMF_EXIT_TEMP_TRANSIENT 101
 874 
 875 #ifdef  __cplusplus
 876 }
 877 #endif
 878 
 879 #endif  /* _LIBSCF_H */