Lines Matching refs:retcode
67 itera->retcode = IDMAP_NEXT;\
97 idmap_stat retcode;
101 retcode = _idmap_clnt_call(IDMAP_GET_PROP,
104 if (retcode != IDMAP_SUCCESS)
105 return (retcode);
107 return (res->retcode); /* This might not be IDMAP_SUCCESS! */
189 idmap_stat retcode;
198 retcode = _idmap_clnt_call(IDMAP_UPDATE,
202 if (retcode != IDMAP_SUCCESS)
205 retcode = udthandle->commit_stat = res.retcode;
208 if (retcode != IDMAP_SUCCESS) {
213 retcode = idmap_namerule_cpy(&udthandle->error_rule,
215 if (retcode != IDMAP_SUCCESS) {
220 retcode = idmap_namerule_cpy(&udthandle->conflict_rule,
222 if (retcode != IDMAP_SUCCESS) {
228 retcode = res.retcode;
233 if (retcode == IDMAP_SUCCESS) {
238 errno = idmap_stat2errno(retcode);
239 return (retcode);
271 idmap_stat retcode;
277 retcode = idmap_strdupnull(windomain, rule->windomain);
278 if (retcode != IDMAP_SUCCESS)
281 retcode = idmap_strdupnull(winname, rule->winname);
282 if (retcode != IDMAP_SUCCESS)
285 retcode = idmap_strdupnull(unixname, rule->unixname);
286 if (retcode != IDMAP_SUCCESS)
313 return (retcode);
429 idmap_retcode retcode;
432 retcode = _udt_extend_batch(udthandle);
433 if (retcode != IDMAP_SUCCESS)
444 retcode = idmap_strdupnull(&rule->windomain, windomain);
445 if (retcode != IDMAP_SUCCESS)
448 retcode = idmap_strdupnull(&rule->winname, winname);
449 if (retcode != IDMAP_SUCCESS)
452 retcode = idmap_strdupnull(&rule->unixname, unixname);
453 if (retcode != IDMAP_SUCCESS)
465 errno = idmap_stat2errno(retcode);
466 return (retcode);
476 idmap_retcode retcode;
479 retcode = _udt_extend_batch(udthandle);
480 if (retcode != IDMAP_SUCCESS)
490 retcode = idmap_strdupnull(&rule->windomain, windomain);
491 if (retcode != IDMAP_SUCCESS)
494 retcode = idmap_strdupnull(&rule->winname, winname);
495 if (retcode != IDMAP_SUCCESS)
498 retcode = idmap_strdupnull(&rule->unixname, unixname);
499 if (retcode != IDMAP_SUCCESS)
510 errno = idmap_stat2errno(retcode);
511 return (retcode);
519 idmap_retcode retcode;
521 retcode = _udt_extend_batch(udthandle);
522 if (retcode != IDMAP_SUCCESS)
531 errno = idmap_stat2errno(retcode);
532 return (retcode);
576 idmap_retcode retcode;
585 retcode = idmap_strdupnull(&rule->windomain, windomain);
586 if (retcode != IDMAP_SUCCESS)
589 retcode = idmap_strdupnull(&rule->winname, winname);
590 if (retcode != IDMAP_SUCCESS)
593 retcode = idmap_strdupnull(&rule->unixname, unixname);
594 if (retcode != IDMAP_SUCCESS)
608 return (retcode);
637 idmap_retcode retcode;
646 if (iter->retcode == IDMAP_NEXT && (namerules == NULL ||
655 retcode = _iter_get_next_list(IDMAP_LIST_NAMERULES,
660 if (retcode != IDMAP_SUCCESS)
661 return (retcode);
663 if (IDMAP_ERROR(namerules->retcode)) {
664 retcode = namerules->retcode;
668 return (retcode);
670 iter->retcode = namerules->retcode;
681 retcode = idmap_strdupnull(windomain,
683 if (retcode != IDMAP_SUCCESS)
686 retcode = idmap_strdupnull(winname,
688 if (retcode != IDMAP_SUCCESS)
691 retcode = idmap_strdupnull(unixname,
693 if (retcode != IDMAP_SUCCESS)
707 return (iter->retcode);
718 return (retcode);
765 idmap_retcode retcode;
790 if (iter->retcode == IDMAP_NEXT && (mappings == NULL ||
799 retcode = _iter_get_next_list(IDMAP_LIST_MAPPINGS,
804 if (retcode != IDMAP_SUCCESS)
805 return (retcode);
807 if (IDMAP_ERROR(mappings->retcode)) {
808 retcode = mappings->retcode;
812 return (retcode);
814 iter->retcode = mappings->retcode;
831 retcode = IDMAP_ERR_MEMORY;
840 retcode = idmap_strdupnull(windomain,
842 if (retcode != IDMAP_SUCCESS)
845 retcode = idmap_strdupnull(winname,
847 if (retcode != IDMAP_SUCCESS)
850 retcode = idmap_strdupnull(unixname,
852 if (retcode != IDMAP_SUCCESS)
876 return (iter->retcode);
889 return (retcode);
994 idmap_retcode retcode;
1005 retcode = idmap_cache_lookup_uidbysid(sidprefix, rid, uid);
1006 if (retcode == IDMAP_SUCCESS || retcode == IDMAP_ERR_MEMORY) {
1007 *stat = retcode;
1008 return (retcode);
1013 if ((retcode = _get_ids_extend_batch(gh)) != IDMAP_SUCCESS)
1022 retcode = IDMAP_ERR_MEMORY;
1041 errno = idmap_stat2errno(retcode);
1042 return (retcode);
1089 idmap_retcode retcode;
1100 retcode = idmap_cache_lookup_gidbysid(sidprefix, rid, gid);
1101 if (retcode == IDMAP_SUCCESS || retcode == IDMAP_ERR_MEMORY) {
1102 *stat = retcode;
1103 return (retcode);
1108 if ((retcode = _get_ids_extend_batch(gh)) != IDMAP_SUCCESS)
1117 retcode = IDMAP_ERR_MEMORY;
1135 errno = idmap_stat2errno(retcode);
1136 return (retcode);
1188 idmap_retcode retcode;
1199 retcode = idmap_cache_lookup_pidbysid(sidprefix, rid, pid,
1201 if (retcode == IDMAP_SUCCESS || retcode == IDMAP_ERR_MEMORY) {
1202 *stat = retcode;
1203 return (retcode);
1208 if ((retcode = _get_ids_extend_batch(gh)) != IDMAP_SUCCESS)
1217 retcode = IDMAP_ERR_MEMORY;
1237 errno = idmap_stat2errno(retcode);
1238 return (retcode);
1285 idmap_retcode retcode;
1296 retcode = idmap_cache_lookup_sidbyuid(sidprefix, rid, uid);
1297 if (retcode == IDMAP_SUCCESS || retcode == IDMAP_ERR_MEMORY) {
1298 *stat = retcode;
1299 return (retcode);
1304 if ((retcode = _get_ids_extend_batch(gh)) != IDMAP_SUCCESS)
1328 errno = idmap_stat2errno(retcode);
1329 return (retcode);
1376 idmap_retcode retcode;
1387 retcode = idmap_cache_lookup_sidbygid(sidprefix, rid, gid);
1388 if (retcode == IDMAP_SUCCESS || retcode == IDMAP_ERR_MEMORY) {
1389 *stat = retcode;
1390 return (retcode);
1395 if ((retcode = _get_ids_extend_batch(gh)) != IDMAP_SUCCESS)
1419 errno = idmap_stat2errno(retcode);
1420 return (retcode);
1432 idmap_retcode retcode;
1445 retcode = _idmap_clnt_call(IDMAP_GET_MAPPED_IDS,
1451 if (retcode != IDMAP_SUCCESS) {
1454 if (res.retcode != IDMAP_SUCCESS) {
1455 retcode = res.retcode;
1463 *gh->retlist[i].stat = res.ids.ids_val[i].retcode;
1474 if (res.ids.ids_val[i].retcode == IDMAP_SUCCESS &&
1497 if (res.ids.ids_val[i].retcode == IDMAP_SUCCESS &&
1539 if (res.ids.ids_val[i].retcode == IDMAP_SUCCESS &&
1568 retcode = IDMAP_SUCCESS;
1573 errno = idmap_stat2errno(retcode);
1574 return (retcode);
1605 idmap_retcode retcode, rc;
1623 retcode = idmap_strdupnull(&request.id1name, winname);
1624 if (retcode != IDMAP_SUCCESS)
1627 retcode = idmap_strdupnull(&request.id1domain, windomain);
1628 if (retcode != IDMAP_SUCCESS)
1651 retcode = _idmap_clnt_call(IDMAP_GET_MAPPED_ID_BY_NAME,
1656 if (retcode != IDMAP_SUCCESS)
1659 retcode = result.retcode;
1662 if (retcode == IDMAP_SUCCESS)
1663 retcode = IDMAP_ERR_NORESULT;
1693 retcode = rc;
1701 if (retcode != IDMAP_SUCCESS)
1702 errno = idmap_stat2errno(retcode);
1703 return (retcode);
1720 idmap_retcode retcode, rc;
1758 retcode = _idmap_clnt_call(IDMAP_GET_MAPPED_ID_BY_NAME,
1763 if (retcode != IDMAP_SUCCESS)
1764 return (retcode);
1766 retcode = result.retcode;
1769 if (retcode == IDMAP_SUCCESS)
1770 retcode = IDMAP_ERR_NORESULT;
1793 retcode = IDMAP_ERR_MEMORY;
1802 retcode = rc;
1806 retcode = rc;
1826 if (retcode != IDMAP_SUCCESS)
1827 errno = idmap_stat2errno(retcode);
1828 return (retcode);
1919 if (stattable[i].retcode == status)
1931 if (stattable[i].retcode == stat)