Lines Matching refs:ptr

102 	char	**ptr;  in ns_free_map()  local
115 for (ptr = mapp->map; *ptr; ptr++) in ns_free_map()
116 free(*ptr); in ns_free_map()
299 __ns_ldap_freeASearchDesc(ns_ldap_search_desc_t *ptr) in __ns_ldap_freeASearchDesc() argument
301 if (ptr == NULL) in __ns_ldap_freeASearchDesc()
303 if (ptr->basedn) in __ns_ldap_freeASearchDesc()
304 free(ptr->basedn); in __ns_ldap_freeASearchDesc()
305 if (ptr->filter) in __ns_ldap_freeASearchDesc()
306 free(ptr->filter); in __ns_ldap_freeASearchDesc()
307 free(ptr); in __ns_ldap_freeASearchDesc()
329 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()
467 ptr->scope = NS_LDAP_SCOPE_BASE; in __s_api_parseASearchDesc()
469 ptr->scope = NS_LDAP_SCOPE_ONELEVEL; in __s_api_parseASearchDesc()
472 ptr->scope = NS_LDAP_SCOPE_SUBTREE; in __s_api_parseASearchDesc()
562 __ns_ldap_freeASearchDesc(ptr); in __s_api_parseASearchDesc()
563 ptr = NULL; in __s_api_parseASearchDesc()
568 __ns_ldap_freeASearchDesc(ptr); in __s_api_parseASearchDesc()
569 ptr = NULL; in __s_api_parseASearchDesc()
573 __ns_ldap_freeASearchDesc(ptr); in __s_api_parseASearchDesc()
574 ptr = NULL; in __s_api_parseASearchDesc()
581 __ns_ldap_freeASearchDesc(ptr); in __s_api_parseASearchDesc()
582 ptr = NULL; in __s_api_parseASearchDesc()
587 if (empty || strlen(ptr->basedn) == 0) { in __s_api_parseASearchDesc()
588 if (ptr->basedn) in __s_api_parseASearchDesc()
589 free(ptr->basedn); in __s_api_parseASearchDesc()
598 __ns_ldap_freeASearchDesc(ptr); in __s_api_parseASearchDesc()
599 ptr = NULL; in __s_api_parseASearchDesc()
602 ptr->basedn = strdup(dns[0]); in __s_api_parseASearchDesc()
608 *ret = ptr; in __s_api_parseASearchDesc()
805 ns_ldap_search_desc_t *ptr; in __ns_ldap_freeSearchDescriptors() local
809 for (dptr = *desc; (ptr = *dptr) != NULL; dptr++) { in __ns_ldap_freeSearchDescriptors()
810 __ns_ldap_freeASearchDesc(ptr); in __ns_ldap_freeSearchDescriptors()
842 ns_ldap_attribute_map_t *ptr; in __ns_ldap_freeAttributeMaps() local
847 for (dptr = *maps; (ptr = *dptr) != NULL; dptr++) { in __ns_ldap_freeAttributeMaps()
848 if (ptr->origAttr) { in __ns_ldap_freeAttributeMaps()
849 free(ptr->origAttr); in __ns_ldap_freeAttributeMaps()
850 ptr->origAttr = NULL; in __ns_ldap_freeAttributeMaps()
852 if (ptr->mappedAttr) { in __ns_ldap_freeAttributeMaps()
853 for (cpp = ptr->mappedAttr; (cp = *cpp) != NULL; cpp++) in __ns_ldap_freeAttributeMaps()
855 free(ptr->mappedAttr); in __ns_ldap_freeAttributeMaps()
856 ptr->mappedAttr = NULL; in __ns_ldap_freeAttributeMaps()
858 free(ptr); in __ns_ldap_freeAttributeMaps()
870 ns_config_t *ptr = __s_api_loadrefresh_config(); in __ns_ldap_getMappedAttributes() local
874 if (ptr == NULL) in __ns_ldap_getMappedAttributes()
877 hp = ns_get_hash(ptr, NS_HASH_AMAP, service, origAttribute); in __ns_ldap_getMappedAttributes()
883 __s_api_release_config(ptr); in __ns_ldap_getMappedAttributes()
891 ns_config_t *ptr = __s_api_loadrefresh_config(); in __ns_ldap_getOrigAttribute() local
895 if (ptr == NULL) in __ns_ldap_getOrigAttribute()
898 hp = ns_get_hash(ptr, NS_HASH_RAMAP, service, mappedAttribute); in __ns_ldap_getOrigAttribute()
904 __s_api_release_config(ptr); in __ns_ldap_getOrigAttribute()
925 ns_ldap_objectclass_map_t *ptr; in __ns_ldap_freeObjectClassMaps() local
929 for (dptr = *maps; (ptr = *dptr) != NULL; dptr++) { in __ns_ldap_freeObjectClassMaps()
930 if (ptr->origOC) { in __ns_ldap_freeObjectClassMaps()
931 free(ptr->origOC); in __ns_ldap_freeObjectClassMaps()
932 ptr->origOC = NULL; in __ns_ldap_freeObjectClassMaps()
934 if (ptr->mappedOC) { in __ns_ldap_freeObjectClassMaps()
935 free(ptr->mappedOC); in __ns_ldap_freeObjectClassMaps()
936 ptr->mappedOC = NULL; in __ns_ldap_freeObjectClassMaps()
938 free(ptr); in __ns_ldap_freeObjectClassMaps()
950 ns_config_t *ptr = __s_api_loadrefresh_config(); in __ns_ldap_getMappedObjectClass() local
954 if (ptr == NULL) in __ns_ldap_getMappedObjectClass()
957 hp = ns_get_hash(ptr, NS_HASH_OMAP, service, origObjectClass); in __ns_ldap_getMappedObjectClass()
963 __s_api_release_config(ptr); in __ns_ldap_getMappedObjectClass()
971 ns_config_t *ptr = __s_api_loadrefresh_config(); in __ns_ldap_getOrigObjectClass() local
975 if (ptr == NULL) in __ns_ldap_getOrigObjectClass()
978 hp = ns_get_hash(ptr, NS_HASH_ROMAP, service, mappedObjectClass); in __ns_ldap_getOrigObjectClass()
984 __s_api_release_config(ptr); in __ns_ldap_getOrigObjectClass()