/*
* CDDL HEADER START
*
* 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
* 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]
*
* CDDL HEADER END
*/
/*
* Copyright 2014 Garrett D'Amore <garrett@damore.org>
*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
#ifndef _SYS_UADMIN_H
#define _SYS_UADMIN_H
#if !defined(_ASM)
#endif
#ifdef __cplusplus
extern "C" {
#endif
/* 17-21 reserved for obsolete interface */
/*
* Functions reserved for A_FREEZE (may not be available on all platforms)
* Note: AD_COMPRESS, AD_CHECK and AD_FORCE are now obsolete
* The first two are succeeded by AD_SUSPEND_TO_DISK and
* AD_CHECK_SUSPEND_TO_DISK respectively.
* AD_FORCE should not be used by any new application
*
* We maintain compatibility with the earlier interfaces:
* AD_COMPRESS and AD_CHECK, by preserving those values
* in the corresponding new interfaces
*/
/*
* NOTE: the following defines comprise an Unstable interface. Their semantics
* may change or they may be removed completely in a later release
*/
/*
* Functions of A_CONFIG. Unstable interface.
*/
/*
* When 'mdep' (the second argument to uadmin(2)) is initialized for A_REBOOT,
* A_SHUTDOWN or A_DUMP, it represents the boot arguments string of at most
* 256 characters.
*/
#if !defined(_KERNEL)
/*
* FMRI for boot-config service.
*/
#define FMRI_BOOT_CONFIG \
"svc:/system/boot-config:default"
/*
* Property group that contains all Fast Reboot configuration properties.
*/
/*
* Property group that contains all Fast Reboot blacklisting information.
*/
/*
* Non-persistent property group which contains all the properties that
* will override settings in the BOOT_CONFIG_PG_PARAMS property group.
*/
#endif /* _KERNEL */
/*
* Flag representations of fastboot configuration.
*/
#define FASTREBOOT_ONPANIC_NOTSET(p) \
(strcmp((p), "false") == 0 || \
strcmp((p), "no") == 0 || \
strcmp((p), "0") == 0)
#define FASTREBOOT_ONPANIC_ISSET(p) \
(strcmp((p), "true") == 0 || \
strcmp((p), "yes") == 0 || \
strcmp((p), "1") == 0)
#if !defined(_ASM)
#if defined(_KERNEL)
extern void mdpreboot(int, int, char *);
#endif
#endif /* _ASM */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_UADMIN_H */