Lines Matching refs:result

221 	NSL_RESULT result = NSL_OK;
251 result = _connectToLDAP(cred, &ld);
252 if ((result == NSL_OK) && (ld != NULL))
306 result = ldap_delete_s(ld,
308 if (result != LDAP_SUCCESS)
310 result = NSL_ERR_DEL_FAILED;
318 result = NSL_ERR_UNKNOWN_PRINTER;
335 result =
347 result =
372 result = NSL_ERR_INTERNAL;
375 return ((int)result);
410 NSL_RESULT result = NSL_OK;
424 result = NSL_ERR_CREDENTIALS;
453 result = NSL_ERR_CONNECT;
493 result = NSL_ERR_BIND;
502 return (result);
633 NSL_RESULT result = NSL_ERR_UNKNOWN_PRINTER;
677 result = NSL_OK;
692 result = NSL_ERR_INTERNAL;
695 return (result);
723 NSL_RESULT result = NSL_ERR_UNKNOWN_PRINTER;
744 result = NSL_OK;
753 result = NSL_ERR_INTERNAL;
756 return (result);
784 NSL_RESULT result = NSL_ERR_UNKNOWN_PRINTER;
815 result = NSL_OK;
824 result = NSL_ERR_INTERNAL;
827 return (result);
863 NSL_RESULT result = NSL_ERR_ADD_FAILED;
873 result = _checkAttributes(attrList);
875 if (result == NSL_OK)
889 result = _constructAddLDAPMod(printerName,
891 if (result == NSL_OK)
897 result = NSL_OK;
901 result = NSL_ERR_ADD_FAILED;
914 result = NSL_ERR_INTERNAL;
921 result = NSL_ERR_INTERNAL;
924 return (result);
959 NSL_RESULT result = NSL_ERR_INTERNAL;
971 result = _checkAttributes(attrList);
973 if (result == NSL_OK)
1003 result = _constructModLDAPMod(printerName,
1008 if ((result == NSL_OK) && (attrs != NULL))
1014 result = NSL_OK;
1018 result = NSL_ERR_MOD_FAILED;
1034 result = NSL_ERR_RENAME; /* NOT ALLOWED */
1044 return (result);
1071 NSL_RESULT result = NSL_OK;
1078 for (p = list; (p != NULL) && (*p != NULL) && (result == NSL_OK); p++)
1089 result = NSL_ERR_KVP;
1095 result = NSL_ERR_BSDADDR;
1101 result = NSL_ERR_PNAME;
1112 result = NSL_ERR_NOTALLOWED;
1118 return (result);
1149 NSL_RESULT result = NSL_OK;
1179 result = NSL_ERR_MEMORY;
1190 result = NSL_ERR_MEMORY;
1196 result = NSL_ERR_INTERNAL;
1199 if (result == NSL_OK)
1221 result = NSL_ERR_MEMORY;
1226 result = NSL_ERR_MEMORY;
1246 result = NSL_ERR_MEMORY;
1251 return (result);
1284 NSL_RESULT result = NSL_OK;
1317 result = NSL_ERR_MEMORY;
1330 result = NSL_ERR_MEMORY;
1336 result = NSL_ERR_INTERNAL;
1339 if (result == NSL_OK)
1363 result = NSL_ERR_MEMORY;
1378 result = NSL_ERR_MEMORY; /* malloc failed */
1406 result = NSL_ERR_MEMORY;
1412 result = NSL_ERR_MULTIOP;
1441 return (result);
1472 NSL_RESULT result = NSL_ERROR;
1488 result = _addLDAPmodValue(attrs, ATTR_OCLASS, OCV_TOP);
1489 if (result == NSL_OK)
1492 result =
1495 if (result == NSL_OK)
1497 result = _addLDAPmodValue(attrs,
1500 if (result == NSL_OK)
1502 result = _addLDAPmodValue(attrs,
1505 if (result == NSL_OK)
1507 result = _addLDAPmodValue(attrs,
1517 (p != NULL) && (*p != NULL) && (result == NSL_OK); p++)
1554 result = _addLDAPmodValue(attrs, attr, value);
1561 if ((result != NSL_OK) && (*attrs != NULL))
1569 result = NSL_ERR_INTERNAL;
1572 return (result);
1606 NSL_RESULT result = NSL_OK;
1633 result = _addLDAPmodValue(attrs,
1635 if (result == NSL_OK)
1637 result = _modLDAPmodValue(attrs,
1650 (p != NULL) && (*p != NULL) && (result == NSL_OK); p++)
1674 result = _modAttrKVP(*p, oldKVPList);
1698 result = _modLDAPmodValue(attrs,
1723 result = _modLDAPmodValue(attrs,
1733 result = _modAttrKVP(*p, oldKVPList);
1738 result = _modLDAPmodValue(attrs,
1746 if ((result == NSL_OK) && (kvpUpdated))
1748 result = _attrAddKVP(attrs, *oldKVPList, kvpExists);
1751 if ((result != NSL_OK) && (*attrs != NULL))
1759 result = NSL_ERR_INTERNAL;
1762 return (result);
1796 NSL_RESULT result = NSL_OK;
1841 result = NSL_ERROR;
1850 return (result);
1865 * This is extracted from the result of executing ldaplist.
1924 * char *buffer - ptr to buffer to put result in
1925 * int size - size of result buffer
1937 int result = -1;
1959 /* result is too long */
1966 result = 0;
1973 return (result);
1998 int result = 0;
2005 for (j = 0; (list[j] != NULL) && (result != 1); j++)
2009 result = 1; /* found */
2014 return (result);
2044 int result = 0;
2050 result = 1; /* in list */
2055 result = 1; /* in list */
2060 result = 1; /* in list */
2063 return (result);
2091 NSL_RESULT result = NSL_ERR_UNKNOWN_PRINTER;
2154 result = NSL_OK;
2163 result = NSL_ERR_INTERNAL;
2166 return (result);
2250 NSL_RESULT result = NSL_ERR_INTERNAL;
2262 result = NSL_OK;
2325 return (result);
2358 NSL_RESULT result = NSL_OK;
2370 result =
2383 result = _modLDAPmodValue(attrs, ATTR_KVP, NULL);
2389 result = NSL_ERR_INTERNAL;
2392 return (result);
2423 int result = 0;
2468 result = 1; /* error */
2473 result = 1; /* error */
2476 return (result);