Copyright (c) 2003, 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.\|.\|. -lpool [ library.\|.\|. ] #include <pool.h> int pool_error(void);
const char *pool_strerror(int perr);
The pool_strerror() function returns a descriptive null-terminated string for each of the valid pool error codes.
The following error codes can be returned by pool_error():
The operation could not be performed because the configuration was not opened with the correct opening permissions.
A bad parameter was supplied.
An incorrect property type was submitted or encountered during the pool operation.
An error occurred within permanent storage.
The pool configuration presented for the operation is invalid.
A query whose outcome set was empty was attempted.
An unsupported operation was attempted.
An attempt to write a read-only property was made.
The previous pool operation succeeded.
An underlying system call or library function failed; errno(3C) is preserved where possible.
The pool_strerror() function returns a pointer to the string corresponding to the requested error value. If the error value has no corresponding string, -1 is returned and errno is set to indicate the error.
The specified error value is not defined by the pools error facility.
ATTRIBUTE TYPE ATTRIBUTE VALUE |
CSI Enabled |
Interface Stability Unstable |
MT-Level Safe |