Lines Matching defs:error
247 int error;
251 error = nb_ctx_create(&ctx->ct_nb);
252 if (error)
253 return (error);
318 int ind, opt, error = 0;
335 while (error == 0) {
344 error = smb_ctx_setuser(ctx, "", TRUE);
349 error = smb_ctx_setuser(ctx, arg, TRUE);
361 if (error)
362 return (error);
377 error = smb_ctx_parseunc(ctx, arg,
379 if (error)
380 return (error);
384 return (error);
472 int error;
494 error = EINVAL;
531 error = EINVAL;
534 error = smb_ctx_setfullserver(ctx, host);
535 if (error)
540 error = smb_ctx_setdomain(ctx, dom, TRUE);
541 if (error)
548 error = EINVAL;
554 error = EINVAL;
557 error = smb_ctx_setuser(ctx, usr, TRUE);
558 if (error)
562 error = smb_ctx_setpassword(ctx, pw, TRUE);
563 if (error)
581 error = EINVAL;
587 error = EINVAL;
600 error = smb_ctx_setshare(ctx, p, sharetype);
601 if (error)
615 error = EINVAL;
623 if (error == 0 && smb_debug > 0)
626 return (error);
635 int scslen, lcslen, error;
653 error = nls_setrecode(localcs, servercs);
654 if (error == 0)
658 error, localcs, servercs);
661 return (error);
969 int error = 0;
979 error = smb_ctx_setsrvaddr(ctx, arg);
993 error = smb_parse_owner(cp, &ctx->ct_owner, NULL);
1004 error = smb_parse_secopts(ctx, arg);
1011 error = smb_ctx_setdomain(ctx, tmp, TRUE);
1014 return (error);
1026 int error = 0;
1028 error = kiconv_add_xlat_table(to, from, tbl);
1029 if (error && error != EEXIST) {
1032 error, from, to);
1033 return (error);
1035 return (error);
1048 int error = 0;
1072 error = nb_ctx_resolve(ctx->ct_nb);
1073 if (error)
1074 return (error);
1078 error = smb_addiconvtbl("tolower", ssn->ioc_localcs, nls_lower);
1079 if (error)
1080 return (error);
1081 error = smb_addiconvtbl("toupper", ssn->ioc_localcs, nls_upper);
1082 if (error)
1083 return (error);
1088 error = smb_addiconvtbl(ssn->ioc_servercs, ssn->ioc_localcs,
1090 if (error)
1091 return (error);
1095 error = smb_addiconvtbl(ssn->ioc_localcs, ssn->ioc_servercs,
1097 if (error)
1098 return (error);
1106 * error value like getaddrinfo(3), but this
1109 error = smb_ctx_getaddr(ctx);
1110 if (error) {
1111 const char *ais = gai_strerror(error);
1363 int error;
1369 error = smb_ctx_setcharset(ctx, p);
1370 if (error)
1373 error, sname);
1437 error = smb_ctx_setdomain(ctx, p, 0);
1438 if (error)
1441 "section '%s' ignored"), error, sname);
1445 error = smb_ctx_setdomain(ctx, p, 0);
1446 if (error)
1449 "section '%s' ignored"), error, sname);
1454 error = smb_ctx_setuser(ctx, p, 0);
1455 if (error)
1458 "section '%s' ignored"), error, sname);
1466 error = smb_ctx_setsrvaddr(ctx, p);
1467 if (error) {
1471 return (error);
1478 error = smb_ctx_setpassword(ctx, p, 0);
1479 if (error)
1482 error, sname);
1510 * bail out with an error for a missing ct_home.
1521 /* ignore any error here */