9330 stack overflow when creating a deeply nested dataset
[unleashed.git] / usr / src / man / man3pool / pool_error.3pool
bloba5c1f360f87948f379fb6bfc6502ccc104788be7
1 '\" te
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"
7 .SH NAME
8 pool_error, pool_strerror \- error interface to resource pools library
9 .SH SYNOPSIS
10 .LP
11 .nf
12 cc [ \fIflag\fR\&.\|.\|. ] \fIfile\fR\&.\|.\|. \fB-lpool\fR [ \fIlibrary\fR\&.\|.\|. ]
13 #include <pool.h>
15 \fBint\fR \fBpool_error\fR(\fBvoid\fR);
16 .fi
18 .LP
19 .nf
20 \fBconst char *\fR\fBpool_strerror\fR(\fBint\fR \fIperr\fR);
21 .fi
23 .SH DESCRIPTION
24 .sp
25 .LP
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.
29 .sp
30 .LP
31 The \fBpool_strerror()\fR function returns a descriptive null-terminated string
32 for each of the valid pool error codes.
33 .sp
34 .LP
35 The following error codes can be returned by \fBpool_error()\fR:
36 .SH RETURN VALUES
37 .sp
38 .LP
39 The \fBpool_error()\fR function returns the current pool error value for the
40 calling thread from among the following:
41 .sp
42 .ne 2
43 .na
44 \fB\fBPOE_ACCESS\fR\fR
45 .ad
46 .RS 22n
47 The operation could not be performed because the configuration was not opened
48 with the correct opening permissions.
49 .RE
51 .sp
52 .ne 2
53 .na
54 \fB\fBPOE_BADPARAM\fR\fR
55 .ad
56 .RS 22n
57 A bad parameter was supplied.
58 .RE
60 .sp
61 .ne 2
62 .na
63 \fB\fBPOE_BAD_PROP_TYPE\fR\fR
64 .ad
65 .RS 22n
66 An incorrect property type was submitted or encountered during the pool
67 operation.
68 .RE
70 .sp
71 .ne 2
72 .na
73 \fB\fBPOE_DATASTORE\fR\fR
74 .ad
75 .RS 22n
76 An error occurred within permanent storage.
77 .RE
79 .sp
80 .ne 2
81 .na
82 \fB\fBPOE_INVALID_CONF\fR\fR
83 .ad
84 .RS 22n
85 The pool configuration presented for the operation is invalid.
86 .RE
88 .sp
89 .ne 2
90 .na
91 \fB\fBPOE_INVALID_SEARCH\fR\fR
92 .ad
93 .RS 22n
94 A query whose outcome set was empty was attempted.
95 .RE
97 .sp
98 .ne 2
99 .na
100 \fB\fBPOE_NOTSUP\fR\fR
102 .RS 22n
103 An unsupported operation was attempted.
107 .ne 2
109 \fB\fBPOE_PUTPROP\fR\fR
111 .RS 22n
112 An attempt to write a read-only property was made.
116 .ne 2
118 \fB\fBPOE_OK\fR\fR
120 .RS 22n
121 The previous pool operation succeeded.
125 .ne 2
127 \fB\fBPOE_SYSTEM\fR\fR
129 .RS 22n
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
139 error.
140 .SH ERRORS
143 The \fBpool_strerror()\fR function will fail if:
145 .ne 2
147 \fB\fBESRCH\fR\fR
149 .RS 9n
150 The specified error value is not defined by the pools error facility.
153 .SH ATTRIBUTES
156 See \fBattributes\fR(5) for descriptions of the following attributes:
161 box;
162 c | c
163 l | l .
164 ATTRIBUTE TYPE  ATTRIBUTE VALUE
166 CSI     Enabled
168 Interface Stability     Unstable
170 MT-Level        Safe
173 .SH SEE ALSO
176 \fBerrno\fR(3C), \fBlibpool\fR(3LIB), pool_error(3POOL), \fBattributes\fR(5)