Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
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]
cc [ flag.\|.\|. ] file.\|.\|. -lscf [ library.\|.\|. ] #include <libscf.h> scf_error_t scf_error(void);
const char *scf_strerror(scf_error_t error);
The scf_strerror() function takes an error code previously returned by scf_error() and returns a human-readable, localized description of the error.
The error values are as follows: SCF_ERROR_BACKEND_ACCESS
The storage mechanism that the repository server (svc.configd(8)) chose for the operation denied access.
The storage mechanism that the repository server (svc.configd) chose for the operation is read-only. For the local filesystem storage mechanism (currently /etc/svc/repository.db), this usually occurs because the filesystem that contains it is mounted read-only. See mount(8)
The connection to repository is broken.
A required constraint was not met.
Object was deleted.
The object already exists.
An object was bound to a destroyed handle.
Objects from different SCF handles were used.
The object is currently in use.
An internal error occurred.
An argument is invalid.
No memory is available.
The repository server is out of resources.
The repository server is unavailable.
No error occurred.
The handle is not bound.
Nothing of that name was found.
Cannot use unset value.
The user lacks sufficient authority to conduct the requested operation. See smf_security(7).
The type does not match value.
The SCF version is incompatible.
ATTRIBUTE TYPE ATTRIBUTE VALUE |
Interface Stability Committed |
MT-Level MT-Safe |