2 .\" Copyright (c) 2003, Sun Microsystems, Inc. All Rights Reserved.
3 .\" 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.
4 .\" 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.
5 .\" 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]
6 .TH POOL_ERROR 3POOL "Sep 23, 2003"
8 pool_error, pool_strerror \- error interface to resource pools library
12 cc [ \fIflag\fR\&.\|.\|. ] \fIfile\fR\&.\|.\|. \fB-lpool\fR [ \fIlibrary\fR\&.\|.\|. ]
15 \fBint\fR \fBpool_error\fR(\fBvoid\fR);
20 \fBconst char *\fR\fBpool_strerror\fR(\fBint\fR \fIperr\fR);
26 The \fBpool_error()\fR function returns the error value of the last failure
27 recorded by the invocation of one of the functions of the resource pool
28 configuration library, \fBlibpool\fR.
31 The \fBpool_strerror()\fR function returns a descriptive null-terminated string
32 for each of the valid pool error codes.
35 The following error codes can be returned by \fBpool_error()\fR:
39 The \fBpool_error()\fR function returns the current pool error value for the
40 calling thread from among the following:
44 \fB\fBPOE_ACCESS\fR\fR
47 The operation could not be performed because the configuration was not opened
48 with the correct opening permissions.
54 \fB\fBPOE_BADPARAM\fR\fR
57 A bad parameter was supplied.
63 \fB\fBPOE_BAD_PROP_TYPE\fR\fR
66 An incorrect property type was submitted or encountered during the pool
73 \fB\fBPOE_DATASTORE\fR\fR
76 An error occurred within permanent storage.
82 \fB\fBPOE_INVALID_CONF\fR\fR
85 The pool configuration presented for the operation is invalid.
91 \fB\fBPOE_INVALID_SEARCH\fR\fR
94 A query whose outcome set was empty was attempted.
100 \fB\fBPOE_NOTSUP\fR\fR
103 An unsupported operation was attempted.
109 \fB\fBPOE_PUTPROP\fR\fR
112 An attempt to write a read-only property was made.
121 The previous pool operation succeeded.
127 \fB\fBPOE_SYSTEM\fR\fR
130 An underlying system call or library function failed; \fBerrno\fR(3C) is
131 preserved where possible.
136 The \fBpool_strerror()\fR function returns a pointer to the string
137 corresponding to the requested error value. If the error value has no
138 corresponding string, \(mi1 is returned and \fBerrno\fR is set to indicate the
143 The \fBpool_strerror()\fR function will fail if:
150 The specified error value is not defined by the pools error facility.
156 See \fBattributes\fR(5) for descriptions of the following attributes:
164 ATTRIBUTE TYPE ATTRIBUTE VALUE
168 Interface Stability Unstable
176 \fBerrno\fR(3C), \fBlibpool\fR(3LIB), pool_error(3POOL), \fBattributes\fR(5)