Lines Matching refs:scf_error
173 * On failure, returns NULL and sets scf_error() to _CONNECTION_BROKEN,
197 if (ismember(scf_error(), errors_server)) {
215 * On failure, returns NULL and sets scf_error() to: _CONNECTION_BROKEN,
227 if (ismember(scf_error(), errors_server)) {
245 * On error, returns NULL and sets scf_error() to _CONNECTION_BROKEN,
257 if (ismember(scf_error(), errors_server)) {
275 * On error, returns NULL and sets scf_error() to _CONNECTION_BROKEN,
285 if (ismember(scf_error(), errors_server)) {
306 * Returns -1 on failure, sets scf_error() to:
335 assert(scf_error() == SCF_ERROR_HANDLE_DESTROYED);
343 assert(scf_error() != SCF_ERROR_INVALID_ARGUMENT);
348 assert(scf_error() != SCF_ERROR_HANDLE_MISMATCH);
353 assert(scf_error() != SCF_ERROR_NOT_SET);
354 assert(scf_error() != SCF_ERROR_HANDLE_MISMATCH);
376 * Returns NULL on failure, sets scf_error() to:
414 assert(scf_error() != SCF_ERROR_NOT_SET);
430 * Returns NULL on failure, sets scf_error() to _BACKEND_ACCESS,
442 if (ismember(scf_error(), errors_server)) {
444 } else switch (scf_error()) {
467 * Returns -1 on failure, sets scf_error() to:
498 assert(scf_error() != SCF_ERROR_NOT_SET);
513 * Returns NULL on failure, sets scf_error() to:
560 assert(scf_error() == SCF_ERROR_HANDLE_DESTROYED);
569 assert(scf_error() != SCF_ERROR_INVALID_ARGUMENT);
574 assert(scf_error() != SCF_ERROR_HANDLE_MISMATCH);
579 assert(scf_error() != SCF_ERROR_NOT_SET);
580 assert(scf_error() != SCF_ERROR_HANDLE_MISMATCH);
615 assert(scf_error() != SCF_ERROR_NOT_SET);
636 assert(scf_error() != SCF_ERROR_NOT_SET);
637 assert(scf_error() != SCF_ERROR_INVALID_ARGUMENT);
638 assert(scf_error() != SCF_ERROR_HANDLE_MISMATCH);
664 * Returns NULL on failure, sets scf_error() to:
701 * Returns NULL on failure. Sets scf_error() to:
750 * Returns NULL on failure and sets scf_error() to:
807 * Returns NULL on failure and sets scf_error() to _CONNECTION_BROKEN,
819 if (ismember(scf_error(), errors_server)) {
836 * template t. Returns NULL on failure and sets scf_error() to:
893 * but leave scf_error() set to SCF_ERROR_NOT_FOUND. On all other
894 * errors, set scf_error() to:
929 if (ismember(scf_error(), errors_server)) {
933 } else switch (scf_error()) {
962 * Returns NULL on error, sets scf_error() to:
994 assert(scf_error() != SCF_ERROR_INVALID_ARGUMENT);
1005 if (ismember(scf_error(), errors_server)) {
1007 } else switch (scf_error()) {
1033 if (ismember(scf_error(), errors_server)) {
1035 } else switch (scf_error()) {
1065 if (ismember(scf_error(), errors_server)) {
1067 } else switch (scf_error()) {
1093 * Returns NULL on error, sets scf_error() to:
1116 assert(scf_error() != SCF_ERROR_INVALID_ARGUMENT);
1124 if (ismember(scf_error(), errors_server)) {
1127 } else switch (scf_error()) {
1195 if (tg == NULL || /* scf_error() was set */
1233 if (tg == NULL || /* scf_error() was set */
1269 if (tg == NULL || /* scf_error() was set */
1297 * _get_pg() returns 0 on success and -1 on failure. Sets scf_error()
1334 * Sets scf_error() if SCF_WALK_ERROR is returned to _BACKEND_ACCESS,
1349 switch (scf_error()) {
1377 * On error set scf_error() to _BACKEND_ACCESS, _CONNECTION_BROKEN,
1392 switch (scf_error()) {
1452 * Returns NULL on failure, sets scf_error():
1494 assert(scf_error() != SCF_ERROR_INVALID_ARGUMENT);
1554 if (ismember(scf_error(), errors_server)) {
1584 if (ismember(scf_error(), errors_server)) {
1641 * If returning SCF_WALK_ERROR, sets scf_error():
1760 switch (scf_error()) {
1790 if (ismember(scf_error(), errors_server)) {
1804 if (ismember(scf_error(), errors_server)) {
1815 if (ismember(scf_error(), errors_server)) {
1837 scf_error() == SCF_ERROR_CONSTRAINT_VIOLATED) {
1844 switch (scf_error()) {
1911 * scf_error() to:
1965 scf_error() == SCF_ERROR_CONSTRAINT_VIOLATED) {
1974 if (ismember(scf_error(), errors_server)) {
1976 } else switch (scf_error()) {
2006 } else if (scf_error() == SCF_ERROR_NOT_FOUND) {
2055 * Returns NULL on failure, sets scf_error() to _CONNECTION_BROKEN,
2082 if (ismember(scf_error(), errors_server)) {
2095 * Returns NULL on failure, sets scf_error() to:
2194 * Returns NULL on failure, sets scf_error() to _INVALID_ARGUMENT
2217 * Returns -1 on failure. Sets scf_error():
2246 if (ismember(scf_error(), errors_server)) {
2248 } else switch (scf_error()) {
2278 * Returns -1 on error and sets scf_error() to:
2328 scf_error() == SCF_ERROR_CONSTRAINT_VIOLATED) {
2338 if (ismember(scf_error(), errors_server)) {
2340 } else switch (scf_error()) {
2373 } else if (scf_error() == SCF_ERROR_NOT_FOUND) {
2403 if (scf_error() == SCF_ERROR_NOT_FOUND)
2414 if (ismember(scf_error(), errors_server)) {
2416 } else switch (scf_error()) {
2433 if (scf_error() == SCF_ERROR_NOT_FOUND)
2498 } else if (scf_error() == SCF_ERROR_NOT_FOUND ||
2499 scf_error() == SCF_ERROR_CONSTRAINT_VIOLATED ||
2500 scf_error() == SCF_ERROR_TYPE_MISMATCH) {
2575 * Returns NULL on failure, and sets scf_error():
2610 assert(scf_error() != SCF_ERROR_NOT_SET);
2616 if (!ismember(scf_error(), errors_server)) {
2617 switch (scf_error()) {
2662 * Returns NULL on failure, sets scf_error() to _INVALID_ARGUMENT, or
2694 * Returns -1 on failure, and sets scf_error():
2754 if (ismember(scf_error(), errors_server)) {
2756 } else switch (scf_error()) {
2786 if (ismember(scf_error(), errors_server)) {
2789 } else switch (scf_error()) {
2812 if (ismember(scf_error(), errors_server)) {
2844 if (ismember(scf_error(), errors_server)) {
2897 * Returns -1 on failure. Sets scf_error():
2921 * Returns NULL on failure, sets scf_error() to:
2978 if (scf_error() != SCF_ERROR_NOT_FOUND &&
2979 scf_error() != SCF_ERROR_DELETED)
3007 if (scf_error() != SCF_ERROR_NOT_FOUND &&
3008 scf_error() != SCF_ERROR_DELETED)
3022 if (scf_error() == SCF_ERROR_TYPE_MISMATCH ||
3023 scf_error() == SCF_ERROR_CONSTRAINT_VIOLATED)
3045 * Returns -1 on failure, sets scf_error() to:
3082 * Returns -1 on failure, sets scf_error() to:
3105 * Returns -1 on failure. Sets scf_error():
3127 * Returns -1 on failure, sets scf_error() to:
3146 if (ismember(scf_error(), errors_server)) {
3148 } else switch (scf_error()) {
3169 * Returns -1 on failure. Sets scf_error():
3189 if (ismember(scf_error(), errors_server)) {
3191 } else switch (scf_error()) {
3210 * Returns -1 on failure. Sets scf_error():
3234 if (ismember(scf_error(), errors_server)) {
3236 } else switch (scf_error()) {
3256 * Returns -1 on failure. Sets scf_error():
3285 if (ismember(scf_error(), errors_server)) {
3287 } else switch (scf_error()) {
3316 * Returns -1 on failure, sets scf_error() to:
3335 if (ismember(scf_error(), errors_server)) {
3337 } else switch (scf_error()) {
3371 * Returns -1 on failure. Sets scf_error():
3408 * Returns -1 on failure. Sets scf_error():
3445 * Returns -1 on failure. Sets scf_error():
3469 * Returns -1 on failure. Sets scf_error():
3490 if (ismember(scf_error(), errors_server)) {
3492 } else switch (scf_error()) {
3529 * On error set scf_error() _NO_MEMORY, or _NOT_SET (val has not been set
3549 * Returns -1 on failure, sets scf_error() to:
3575 if (scf_error() == SCF_ERROR_NOT_FOUND)
3586 if (scf_error() == SCF_ERROR_NOT_FOUND)
3594 if (ismember(scf_error(), errors_server)) {
3596 } else switch (scf_error()) {
3622 * Returns -1 on failure. Sets scf_error():
3641 if (ismember(scf_error(), errors_server)) {
3643 } else switch (scf_error()) {
3669 * Returns -1 on failure. Sets scf_error():
3693 if (ismember(scf_error(), errors_server)) {
3695 } else switch (scf_error()) {
3721 * Returns NULL on failure. Sets scf_error():
3792 if (ismember(scf_error(), errors_server)) {
3794 } else switch (scf_error()) {
3847 * Returns -1 on failure. Sets scf_error():
3925 if (ismember(scf_error(), errors_server)) {
3927 } else switch (scf_error()) {
3946 * Returns -1 on failure. Sets scf_error():
4025 if (ismember(scf_error(), errors_server)) {
4027 } else switch (scf_error()) {
4047 * Returns -1 on failure. Sets scf_error():
4095 * Returns -1 on failure. Sets scf_error():
4120 } else if (scf_error() != SCF_ERROR_NOT_FOUND) {
4137 } else if (scf_error() != SCF_ERROR_NOT_FOUND) {
4158 } else if (scf_error() != SCF_ERROR_NOT_FOUND) {
4173 if (ismember(scf_error(), errors_server)) {
4175 } else switch (scf_error()) {
4252 * Returns NULL on failure. Sets scf_error():
4341 * Returns -1 on failure, sets scf_error() to:
4396 * Returns -1 on failure, sets scf_error() to:
4950 * Returns NULL on failure. Sets scf_error():
4997 * Returns NULL on failure. Sets scf_error():
5046 * return 0 on success, if fails set scf_error() to:
5067 * Returns -1 on failure. Sets scf_error():
5105 * if fails return NULL and set scf_error() to:
5130 * set scf_error() to:
5181 * set scf_error() to:
5235 * set scf_error() to:
5305 * set scf_error() to:
5383 * set scf_error() to:
5492 * set scf_error() to:
5569 assert(scf_error() != SCF_ERROR_NOT_SET);
5583 * set scf_error() to:
5692 * set scf_error() to:
5786 * Returns -1 on failure. Sets scf_error():
5826 if (scf_error() != SCF_ERROR_NOT_FOUND)
5848 if (scf_error() == SCF_ERROR_NOT_FOUND)
5850 if (scf_error() == SCF_ERROR_CONSTRAINT_VIOLATED)
5873 if (scf_error() == SCF_ERROR_NOT_FOUND)
5875 if (scf_error() != SCF_ERROR_CONSTRAINT_VIOLATED)
5909 if (scf_error() != SCF_ERROR_NOT_FOUND) {
5978 * Returns -1 on failure. Sets scf_error():
6075 * set scf_error() to:
6100 if (scf_error() == SCF_ERROR_NOT_FOUND)
6113 assert(scf_error() == SCF_ERROR_HANDLE_DESTROYED);
6120 if (ismember(scf_error(), errors_server)) {
6129 if (ismember(scf_error(), errors_server)) {
6141 if (ismember(scf_error(), errors_server)) {
6163 * Returns -1 on error. Sets scf_error():
6189 assert(scf_error() == SCF_ERROR_HANDLE_DESTROYED);
6196 if (ismember(scf_error(), errors_server)) {
6211 if (scf_error() != SCF_ERROR_NOT_FOUND) {
6219 if (ismember(scf_error(), errors_server)) {
6221 } else switch (scf_error()) {
6251 assert(scf_error() != SCF_ERROR_NOT_SET &&
6252 scf_error() != SCF_ERROR_HANDLE_MISMATCH);
6258 if (ismember(scf_error(), errors_server)) {
6260 } else switch (scf_error()) {
6273 if (ismember(scf_error(), errors_server)) {
6290 * Returns -1 on failure, sets scf_error() to:
6324 assert(scf_error() == SCF_ERROR_HANDLE_DESTROYED);
6328 assert(scf_error() != SCF_ERROR_INVALID_ARGUMENT);
6333 assert(scf_error() != SCF_ERROR_INVALID_ARGUMENT);
6338 assert(scf_error() != SCF_ERROR_INVALID_ARGUMENT);
6369 if (ismember(scf_error(), errors_server)) {
6379 assert(scf_error() != SCF_ERROR_NOT_SET);
6383 if (ismember(scf_error(), errors_server)) {
6385 } else switch (scf_error()) {
6402 if (ismember(scf_error(), errors_server)) {
6425 if (scf_error() == SCF_ERROR_NOT_FOUND)
6432 if (ismember(scf_error(), errors_server)) {
6434 } else switch (scf_error()) {
6457 if (ismember(scf_error(), errors_server)) {
6459 } else switch (scf_error()) {
6485 * Return -1 on failure, sets scf_error() to:
6600 if (!ismember(scf_error(), errors_server)) {
6601 switch (scf_error()) {
6625 * Returns -1 on failure, sets scf_error() to:
6680 if (ismember(scf_error(), errors_server)) {
6682 } else switch (scf_error()) {
6705 } else if (scf_error() == SCF_ERROR_NOT_FOUND) {
6717 if (ismember(scf_error(), errors_server)) {
6727 if (ismember(scf_error(), errors_server)) {
6736 if (ismember(scf_error(), errors_server)) {
6746 if (ismember(scf_error(), errors_server)) {
6748 } else switch (scf_error()) {
6765 if (ismember(scf_error(), errors_server)) {
6798 if (ismember(scf_error(), errors_server)) {
6800 } else switch (scf_error()) {
6816 if (ismember(scf_error(), errors_server)) {
6818 } else switch (scf_error()) {
7177 assert(scf_error() != SCF_ERROR_NOT_SET);
7190 assert(scf_error() != SCF_ERROR_HANDLE_MISMATCH);
7191 assert(scf_error() != SCF_ERROR_NOT_SET);
7199 assert(scf_error() !=
7201 assert(scf_error() != SCF_ERROR_NOT_SET);
7202 assert(scf_error() !=
7218 assert(scf_error() != SCF_ERROR_NOT_SET);
7219 assert(scf_error() != SCF_ERROR_HANDLE_MISMATCH);
7228 assert(scf_error() != SCF_ERROR_NOT_SET);
7241 assert(scf_error() != SCF_ERROR_HANDLE_MISMATCH);
7242 assert(scf_error() != SCF_ERROR_NOT_SET);
7250 assert(scf_error() !=
7252 assert(scf_error() != SCF_ERROR_NOT_SET);
7253 assert(scf_error() !=
7311 assert(scf_error() != SCF_ERROR_NOT_SET);
7323 assert(scf_error() != SCF_ERROR_NOT_SET);
7328 assert(scf_error() != SCF_ERROR_NOT_SET);
7341 assert(scf_error() != SCF_ERROR_NOT_SET);
7346 assert(scf_error() != SCF_ERROR_NOT_SET);