Lines Matching refs:ptr

103 	char	**ptr;  in ns_free_map()  local
116 for (ptr = mapp->map; *ptr; ptr++) in ns_free_map()
117 free(*ptr); in ns_free_map()
300 __ns_ldap_freeASearchDesc(ns_ldap_search_desc_t *ptr) in __ns_ldap_freeASearchDesc() argument
302 if (ptr == NULL) in __ns_ldap_freeASearchDesc()
304 if (ptr->basedn) in __ns_ldap_freeASearchDesc()
305 free(ptr->basedn); in __ns_ldap_freeASearchDesc()
306 if (ptr->filter) in __ns_ldap_freeASearchDesc()
307 free(ptr->filter); in __ns_ldap_freeASearchDesc()
308 free(ptr); in __ns_ldap_freeASearchDesc()
330 ns_ldap_search_desc_t *ptr; in __s_api_parseASearchDesc() local
348 ptr = (ns_ldap_search_desc_t *) in __s_api_parseASearchDesc()
350 if (ptr == NULL) in __s_api_parseASearchDesc()
359 __ns_ldap_freeASearchDesc(ptr); in __s_api_parseASearchDesc()
360 ptr = NULL; in __s_api_parseASearchDesc()
364 ptr->scope = * (ScopeType_t *)(*paramVal); in __s_api_parseASearchDesc()
366 ptr->scope = NS_LDAP_SCOPE_ONELEVEL; in __s_api_parseASearchDesc()
376 ptr->basedn = strdup(""); in __s_api_parseASearchDesc()
377 if (!ptr->basedn) { in __s_api_parseASearchDesc()
386 ptr->basedn = strdup(""); in __s_api_parseASearchDesc()
387 if (!ptr->basedn) { in __s_api_parseASearchDesc()
396 ptr->basedn = dptr = (char *)calloc(i, sizeof (char)); in __s_api_parseASearchDesc()
397 if (!ptr->basedn) { in __s_api_parseASearchDesc()
431 ptr->filter = dptr = (char *)calloc(i, sizeof (char)); in __s_api_parseASearchDesc()
432 if (!ptr->filter) { in __s_api_parseASearchDesc()
466 ptr->scope = NS_LDAP_SCOPE_BASE; in __s_api_parseASearchDesc()
468 ptr->scope = NS_LDAP_SCOPE_ONELEVEL; in __s_api_parseASearchDesc()
471 ptr->scope = NS_LDAP_SCOPE_SUBTREE; in __s_api_parseASearchDesc()
561 __ns_ldap_freeASearchDesc(ptr); in __s_api_parseASearchDesc()
562 ptr = NULL; in __s_api_parseASearchDesc()
567 __ns_ldap_freeASearchDesc(ptr); in __s_api_parseASearchDesc()
568 ptr = NULL; in __s_api_parseASearchDesc()
572 __ns_ldap_freeASearchDesc(ptr); in __s_api_parseASearchDesc()
573 ptr = NULL; in __s_api_parseASearchDesc()
580 __ns_ldap_freeASearchDesc(ptr); in __s_api_parseASearchDesc()
581 ptr = NULL; in __s_api_parseASearchDesc()
586 if (empty || strlen(ptr->basedn) == 0) { in __s_api_parseASearchDesc()
587 if (ptr->basedn) in __s_api_parseASearchDesc()
588 free(ptr->basedn); in __s_api_parseASearchDesc()
597 __ns_ldap_freeASearchDesc(ptr); in __s_api_parseASearchDesc()
598 ptr = NULL; in __s_api_parseASearchDesc()
601 ptr->basedn = strdup(dns[0]); in __s_api_parseASearchDesc()
607 *ret = ptr; in __s_api_parseASearchDesc()
804 ns_ldap_search_desc_t *ptr; in __ns_ldap_freeSearchDescriptors() local
808 for (dptr = *desc; (ptr = *dptr) != NULL; dptr++) { in __ns_ldap_freeSearchDescriptors()
809 __ns_ldap_freeASearchDesc(ptr); in __ns_ldap_freeSearchDescriptors()
841 ns_ldap_attribute_map_t *ptr; in __ns_ldap_freeAttributeMaps() local
846 for (dptr = *maps; (ptr = *dptr) != NULL; dptr++) { in __ns_ldap_freeAttributeMaps()
847 if (ptr->origAttr) { in __ns_ldap_freeAttributeMaps()
848 free(ptr->origAttr); in __ns_ldap_freeAttributeMaps()
849 ptr->origAttr = NULL; in __ns_ldap_freeAttributeMaps()
851 if (ptr->mappedAttr) { in __ns_ldap_freeAttributeMaps()
852 for (cpp = ptr->mappedAttr; (cp = *cpp) != NULL; cpp++) in __ns_ldap_freeAttributeMaps()
854 free(ptr->mappedAttr); in __ns_ldap_freeAttributeMaps()
855 ptr->mappedAttr = NULL; in __ns_ldap_freeAttributeMaps()
857 free(ptr); in __ns_ldap_freeAttributeMaps()
869 ns_config_t *ptr = __s_api_loadrefresh_config(); in __ns_ldap_getMappedAttributes() local
873 if (ptr == NULL) in __ns_ldap_getMappedAttributes()
876 hp = ns_get_hash(ptr, NS_HASH_AMAP, service, origAttribute); in __ns_ldap_getMappedAttributes()
882 __s_api_release_config(ptr); in __ns_ldap_getMappedAttributes()
890 ns_config_t *ptr = __s_api_loadrefresh_config(); in __ns_ldap_getOrigAttribute() local
894 if (ptr == NULL) in __ns_ldap_getOrigAttribute()
897 hp = ns_get_hash(ptr, NS_HASH_RAMAP, service, mappedAttribute); in __ns_ldap_getOrigAttribute()
903 __s_api_release_config(ptr); in __ns_ldap_getOrigAttribute()
924 ns_ldap_objectclass_map_t *ptr; in __ns_ldap_freeObjectClassMaps() local
928 for (dptr = *maps; (ptr = *dptr) != NULL; dptr++) { in __ns_ldap_freeObjectClassMaps()
929 if (ptr->origOC) { in __ns_ldap_freeObjectClassMaps()
930 free(ptr->origOC); in __ns_ldap_freeObjectClassMaps()
931 ptr->origOC = NULL; in __ns_ldap_freeObjectClassMaps()
933 if (ptr->mappedOC) { in __ns_ldap_freeObjectClassMaps()
934 free(ptr->mappedOC); in __ns_ldap_freeObjectClassMaps()
935 ptr->mappedOC = NULL; in __ns_ldap_freeObjectClassMaps()
937 free(ptr); in __ns_ldap_freeObjectClassMaps()
949 ns_config_t *ptr = __s_api_loadrefresh_config(); in __ns_ldap_getMappedObjectClass() local
953 if (ptr == NULL) in __ns_ldap_getMappedObjectClass()
956 hp = ns_get_hash(ptr, NS_HASH_OMAP, service, origObjectClass); in __ns_ldap_getMappedObjectClass()
962 __s_api_release_config(ptr); in __ns_ldap_getMappedObjectClass()
970 ns_config_t *ptr = __s_api_loadrefresh_config(); in __ns_ldap_getOrigObjectClass() local
974 if (ptr == NULL) in __ns_ldap_getOrigObjectClass()
977 hp = ns_get_hash(ptr, NS_HASH_ROMAP, service, mappedObjectClass); in __ns_ldap_getOrigObjectClass()
983 __s_api_release_config(ptr); in __ns_ldap_getOrigObjectClass()