Lines Matching defs:ret

287 	int i, ret;
291 ret = pthread_mutex_lock(&mutex);
292 assert(ret == 0);
294 ret = pthread_mutex_unlock(&mutex);
295 assert(ret == 0);
306 ret = regcomp(suri_regexps[i].cre, suri_regexps[i].re,
308 if (ret == REG_OK) {
313 assert(ret == REG_ESPACE);
314 ret = pthread_mutex_unlock(&mutex);
315 assert(ret == 0);
320 ret = pthread_mutex_unlock(&mutex);
321 assert(ret == 0);
368 int ret;
384 ret = regexec(&suri_re_uri, sh->sh_uri, 10, pm, 0);
385 if (ret == REG_OK) {
409 ret = regexec(&suri_re_uri_scheme, sh->sh_uri, 0, NULL, 0);
410 if (ret != REG_OK) {
480 suri_err_t ret;
488 ret = suri_parse_generic_uri(sh, gen_uri);
489 if (ret != ESURI_OK)
490 return (ret);
519 int ret;
562 ret = regexec(&suri_re_guid, c, 0, NULL, 0);
563 if (ret != REG_OK) {
584 suri_err_t ret;
619 ret = regexec(&suri_re_unresolved_path, gen_uri->sgu_path, 0, NULL, 0);
620 if (ret != REG_NOMATCH) {
629 ret = regexec(&suri_re_path_portable, gen_uri->sgu_path, 0, NULL, 0);
630 if (ret != REG_OK) {
640 ret = regexec(&suri_re_slashslash, gen_uri->sgu_path, 0, NULL, 0);
641 if (ret == REG_OK) {
681 suri_err_t ret;
745 if ((ret = check_guid(sh, "initiator", part1)) != ESURI_OK)
746 return (ret);
748 if ((ret = check_guid(sh, "target", part2 + 1)) != ESURI_OK)
749 return (ret);
750 if ((ret = check_guid(sh, "luname", part3 + 1)) != ESURI_OK)
751 return (ret);
754 if ((ret = check_guid(sh, "luname", part1)) != ESURI_OK)
755 return (ret);
770 int ret;
799 ret = regexec(&suri_re_authority, gen_uri->sgu_authority, 0,
805 if (ret != REG_OK) {
807 ret = regexec(&suri_re_auth_hname,
809 if (ret != REG_OK) {
838 int ret;
840 ret = regexec(&suri_re_port, c, 0, NULL, 0);
841 if (ret != REG_OK) {
869 ret = regexec(&suri_re_ipv4_hint, name, 0, NULL, 0);
870 if (ret == REG_OK) {
871 ret = regexec(&suri_re_ipv4, name, 0, NULL, 0);
872 if (ret != REG_OK) {
881 ret = regexec(&suri_re_ipv6, name, 0, NULL, 0);
882 if (ret != REG_OK) {
925 ret = regexec(&suri_re_iscsi_path, gen_uri->sgu_path, 2, pm, 0);
927 if (ret != REG_OK) {
928 suri_err_t ret;
940 if ((ret = check_guid(sh, "luname", copy)) != ESURI_OK)
941 return (ret);