Lines Matching refs:scf_error

174  * On failure, returns NULL and sets scf_error() to _CONNECTION_BROKEN,
198 if (ismember(scf_error(), errors_server)) {
216 * On failure, returns NULL and sets scf_error() to: _CONNECTION_BROKEN,
228 if (ismember(scf_error(), errors_server)) {
246 * On error, returns NULL and sets scf_error() to _CONNECTION_BROKEN,
258 if (ismember(scf_error(), errors_server)) {
276 * On error, returns NULL and sets scf_error() to _CONNECTION_BROKEN,
286 if (ismember(scf_error(), errors_server)) {
307 * Returns -1 on failure, sets scf_error() to:
336 assert(scf_error() == SCF_ERROR_HANDLE_DESTROYED);
344 assert(scf_error() != SCF_ERROR_INVALID_ARGUMENT);
349 assert(scf_error() != SCF_ERROR_HANDLE_MISMATCH);
354 assert(scf_error() != SCF_ERROR_NOT_SET);
355 assert(scf_error() != SCF_ERROR_HANDLE_MISMATCH);
377 * Returns NULL on failure, sets scf_error() to:
415 assert(scf_error() != SCF_ERROR_NOT_SET);
431 * Returns NULL on failure, sets scf_error() to _BACKEND_ACCESS,
443 if (ismember(scf_error(), errors_server)) {
445 } else switch (scf_error()) {
468 * Returns -1 on failure, sets scf_error() to:
499 assert(scf_error() != SCF_ERROR_NOT_SET);
514 * Returns NULL on failure, sets scf_error() to:
561 assert(scf_error() == SCF_ERROR_HANDLE_DESTROYED);
570 assert(scf_error() != SCF_ERROR_INVALID_ARGUMENT);
575 assert(scf_error() != SCF_ERROR_HANDLE_MISMATCH);
580 assert(scf_error() != SCF_ERROR_NOT_SET);
581 assert(scf_error() != SCF_ERROR_HANDLE_MISMATCH);
616 assert(scf_error() != SCF_ERROR_NOT_SET);
637 assert(scf_error() != SCF_ERROR_NOT_SET);
638 assert(scf_error() != SCF_ERROR_INVALID_ARGUMENT);
639 assert(scf_error() != SCF_ERROR_HANDLE_MISMATCH);
665 * Returns NULL on failure, sets scf_error() to:
702 * Returns NULL on failure. Sets scf_error() to:
752 * Returns NULL on failure and sets scf_error() to:
809 * Returns NULL on failure and sets scf_error() to _CONNECTION_BROKEN,
821 if (ismember(scf_error(), errors_server)) {
838 * template t. Returns NULL on failure and sets scf_error() to:
895 * but leave scf_error() set to SCF_ERROR_NOT_FOUND. On all other
896 * errors, set scf_error() to:
933 if (ismember(scf_error(), errors_server)) {
937 } else switch (scf_error()) {
966 * Returns NULL on error, sets scf_error() to:
998 assert(scf_error() != SCF_ERROR_INVALID_ARGUMENT);
1009 if (ismember(scf_error(), errors_server)) {
1011 } else switch (scf_error()) {
1037 if (ismember(scf_error(), errors_server)) {
1039 } else switch (scf_error()) {
1069 if (ismember(scf_error(), errors_server)) {
1071 } else switch (scf_error()) {
1097 * Returns NULL on error, sets scf_error() to:
1120 assert(scf_error() != SCF_ERROR_INVALID_ARGUMENT);
1128 if (ismember(scf_error(), errors_server)) {
1131 } else switch (scf_error()) {
1199 if (tg == NULL || /* scf_error() was set */
1237 if (tg == NULL || /* scf_error() was set */
1273 if (tg == NULL || /* scf_error() was set */
1301 * _get_pg() returns 0 on success and -1 on failure. Sets scf_error()
1338 * Sets scf_error() if SCF_WALK_ERROR is returned to _BACKEND_ACCESS,
1353 switch (scf_error()) {
1381 * On error set scf_error() to _BACKEND_ACCESS, _CONNECTION_BROKEN,
1396 switch (scf_error()) {
1456 * Returns NULL on failure, sets scf_error():
1498 assert(scf_error() != SCF_ERROR_INVALID_ARGUMENT);
1558 if (ismember(scf_error(), errors_server)) {
1588 if (ismember(scf_error(), errors_server)) {
1645 * If returning SCF_WALK_ERROR, sets scf_error():
1764 switch (scf_error()) {
1794 if (ismember(scf_error(), errors_server)) {
1808 if (ismember(scf_error(), errors_server)) {
1819 if (ismember(scf_error(), errors_server)) {
1841 scf_error() == SCF_ERROR_CONSTRAINT_VIOLATED) {
1848 switch (scf_error()) {
1915 * scf_error() to:
1969 scf_error() == SCF_ERROR_CONSTRAINT_VIOLATED) {
1978 if (ismember(scf_error(), errors_server)) {
1980 } else switch (scf_error()) {
2010 } else if (scf_error() == SCF_ERROR_NOT_FOUND) {
2059 * Returns NULL on failure, sets scf_error() to _CONNECTION_BROKEN,
2086 if (ismember(scf_error(), errors_server)) {
2099 * Returns NULL on failure, sets scf_error() to:
2197 * Returns NULL on failure, sets scf_error() to _INVALID_ARGUMENT
2220 * Returns -1 on failure. Sets scf_error():
2249 if (ismember(scf_error(), errors_server)) {
2251 } else switch (scf_error()) {
2281 * Returns -1 on error and sets scf_error() to:
2331 scf_error() == SCF_ERROR_CONSTRAINT_VIOLATED) {
2341 if (ismember(scf_error(), errors_server)) {
2343 } else switch (scf_error()) {
2376 } else if (scf_error() == SCF_ERROR_NOT_FOUND) {
2406 if (scf_error() == SCF_ERROR_NOT_FOUND)
2417 if (ismember(scf_error(), errors_server)) {
2419 } else switch (scf_error()) {
2436 if (scf_error() == SCF_ERROR_NOT_FOUND)
2501 } else if (scf_error() == SCF_ERROR_NOT_FOUND ||
2502 scf_error() == SCF_ERROR_CONSTRAINT_VIOLATED ||
2503 scf_error() == SCF_ERROR_TYPE_MISMATCH) {
2578 * Returns NULL on failure, and sets scf_error():
2613 assert(scf_error() != SCF_ERROR_NOT_SET);
2619 if (!ismember(scf_error(), errors_server)) {
2620 switch (scf_error()) {
2665 * Returns NULL on failure, sets scf_error() to _INVALID_ARGUMENT, or
2697 * Returns -1 on failure, and sets scf_error():
2757 if (ismember(scf_error(), errors_server)) {
2759 } else switch (scf_error()) {
2789 if (ismember(scf_error(), errors_server)) {
2792 } else switch (scf_error()) {
2815 if (ismember(scf_error(), errors_server)) {
2847 if (ismember(scf_error(), errors_server)) {
2900 * Returns -1 on failure. Sets scf_error():
2924 * Returns NULL on failure, sets scf_error() to:
2954 if (scf_error() != SCF_ERROR_NOT_FOUND)
2963 if (scf_error() == SCF_ERROR_TYPE_MISMATCH ||
2964 scf_error() == SCF_ERROR_CONSTRAINT_VIOLATED)
2973 * Returns -1 on failure, sets scf_error() to:
3003 * Returns -1 on failure, sets scf_error() to:
3031 * Returns -1 on failure. Sets scf_error():
3053 * Returns -1 on failure, sets scf_error() to:
3072 if (ismember(scf_error(), errors_server)) {
3074 } else switch (scf_error()) {
3095 * Returns -1 on failure. Sets scf_error():
3115 if (ismember(scf_error(), errors_server)) {
3117 } else switch (scf_error()) {
3136 * Returns -1 on failure. Sets scf_error():
3160 if (ismember(scf_error(), errors_server)) {
3162 } else switch (scf_error()) {
3182 * Returns -1 on failure. Sets scf_error():
3211 if (ismember(scf_error(), errors_server)) {
3213 } else switch (scf_error()) {
3242 * Returns -1 on failure, sets scf_error() to:
3261 if (ismember(scf_error(), errors_server)) {
3263 } else switch (scf_error()) {
3285 * Returns -1 on failure. Sets scf_error():
3315 * Returns -1 on failure. Sets scf_error():
3345 * Returns -1 on failure. Sets scf_error():
3374 * Returns -1 on failure. Sets scf_error():
3395 if (ismember(scf_error(), errors_server)) {
3397 } else switch (scf_error()) {
3434 * On error set scf_error() _NO_MEMORY, or _NOT_SET (val has not been set
3454 * Returns -1 on failure, sets scf_error() to:
3480 if (scf_error() == SCF_ERROR_NOT_FOUND)
3491 if (scf_error() == SCF_ERROR_NOT_FOUND)
3499 if (ismember(scf_error(), errors_server)) {
3501 } else switch (scf_error()) {
3527 * Returns -1 on failure. Sets scf_error():
3546 if (ismember(scf_error(), errors_server)) {
3548 } else switch (scf_error()) {
3574 * Returns -1 on failure. Sets scf_error():
3598 if (ismember(scf_error(), errors_server)) {
3600 } else switch (scf_error()) {
3626 * Returns NULL on failure. Sets scf_error():
3697 if (ismember(scf_error(), errors_server)) {
3699 } else switch (scf_error()) {
3752 * Returns -1 on failure. Sets scf_error():
3830 if (ismember(scf_error(), errors_server)) {
3832 } else switch (scf_error()) {
3851 * Returns -1 on failure. Sets scf_error():
3930 if (ismember(scf_error(), errors_server)) {
3932 } else switch (scf_error()) {
3952 * Returns -1 on failure. Sets scf_error():
4000 * Returns -1 on failure. Sets scf_error():
4025 } else if (scf_error() != SCF_ERROR_NOT_FOUND) {
4042 } else if (scf_error() != SCF_ERROR_NOT_FOUND) {
4063 } else if (scf_error() != SCF_ERROR_NOT_FOUND) {
4078 if (ismember(scf_error(), errors_server)) {
4080 } else switch (scf_error()) {
4157 * Returns NULL on failure. Sets scf_error():
4225 * Returns -1 on failure, sets scf_error() to:
4271 * Returns -1 on failure, sets scf_error() to:
4839 * Returns NULL on failure. Sets scf_error():
4886 * Returns NULL on failure. Sets scf_error():
4935 * return 0 on success, if fails set scf_error() to:
4956 * Returns -1 on failure. Sets scf_error():
4994 * if fails return NULL and set scf_error() to:
5019 * set scf_error() to:
5070 * set scf_error() to:
5124 * set scf_error() to:
5194 * set scf_error() to:
5272 * set scf_error() to:
5381 * set scf_error() to:
5458 assert(scf_error() != SCF_ERROR_NOT_SET);
5472 * set scf_error() to:
5581 * set scf_error() to:
5675 * Returns -1 on failure. Sets scf_error():
5715 if (scf_error() != SCF_ERROR_NOT_FOUND)
5737 if (scf_error() == SCF_ERROR_NOT_FOUND)
5739 if (scf_error() == SCF_ERROR_CONSTRAINT_VIOLATED)
5762 if (scf_error() == SCF_ERROR_NOT_FOUND)
5764 if (scf_error() != SCF_ERROR_CONSTRAINT_VIOLATED)
5798 if (scf_error() != SCF_ERROR_NOT_FOUND) {
5867 * Returns -1 on failure. Sets scf_error():
5964 * set scf_error() to:
5989 if (scf_error() == SCF_ERROR_NOT_FOUND)
6002 assert(scf_error() == SCF_ERROR_HANDLE_DESTROYED);
6009 if (ismember(scf_error(), errors_server)) {
6018 if (ismember(scf_error(), errors_server)) {
6030 if (ismember(scf_error(), errors_server)) {
6052 * Returns -1 on error. Sets scf_error():
6078 assert(scf_error() == SCF_ERROR_HANDLE_DESTROYED);
6085 if (ismember(scf_error(), errors_server)) {
6100 if (scf_error() != SCF_ERROR_NOT_FOUND) {
6108 if (ismember(scf_error(), errors_server)) {
6110 } else switch (scf_error()) {
6140 assert(scf_error() != SCF_ERROR_NOT_SET &&
6141 scf_error() != SCF_ERROR_HANDLE_MISMATCH);
6147 if (ismember(scf_error(), errors_server)) {
6149 } else switch (scf_error()) {
6162 if (ismember(scf_error(), errors_server)) {
6179 * Returns -1 on failure, sets scf_error() to:
6213 assert(scf_error() == SCF_ERROR_HANDLE_DESTROYED);
6217 assert(scf_error() != SCF_ERROR_INVALID_ARGUMENT);
6222 assert(scf_error() != SCF_ERROR_INVALID_ARGUMENT);
6227 assert(scf_error() != SCF_ERROR_INVALID_ARGUMENT);
6258 if (ismember(scf_error(), errors_server)) {
6268 assert(scf_error() != SCF_ERROR_NOT_SET);
6272 if (ismember(scf_error(), errors_server)) {
6274 } else switch (scf_error()) {
6291 if (ismember(scf_error(), errors_server)) {
6314 if (scf_error() == SCF_ERROR_NOT_FOUND)
6321 if (ismember(scf_error(), errors_server)) {
6323 } else switch (scf_error()) {
6346 if (ismember(scf_error(), errors_server)) {
6348 } else switch (scf_error()) {
6374 * Return -1 on failure, sets scf_error() to:
6489 if (!ismember(scf_error(), errors_server)) {
6490 switch (scf_error()) {
6514 * Returns -1 on failure, sets scf_error() to:
6569 if (ismember(scf_error(), errors_server)) {
6571 } else switch (scf_error()) {
6596 } else if (scf_error() == SCF_ERROR_NOT_FOUND) {
6608 if (ismember(scf_error(), errors_server)) {
6618 if (ismember(scf_error(), errors_server)) {
6627 if (ismember(scf_error(), errors_server)) {
6637 if (ismember(scf_error(), errors_server)) {
6639 } else switch (scf_error()) {
6656 if (ismember(scf_error(), errors_server)) {
6689 if (ismember(scf_error(), errors_server)) {
6691 } else switch (scf_error()) {
6707 if (ismember(scf_error(), errors_server)) {
6709 } else switch (scf_error()) {