int TAO_Persistent_Bindings_Map::open (size_t hash_table_size, ACE_Allocator *alloc) { allocator_ = alloc; // Use allocator to allocate space for the hash map. void *hash_map = 0; size_t map_size = sizeof (HASH_MAP); hash_map = this->allocator_->malloc (map_size); // If allocation failed ... if (hash_map == 0) return -1; // Initialize allocated hash map through placement new. if (open_helper (hash_table_size, hash_map) == -1) this->allocator_->free (hash_map); return 0; }
P3 (PUBLIC pascal trap, OSErr, FSpOpenRF, FSSpecPtr, spec, SignedByte, perms, int16 *, refoutp) { return open_helper (spec, perms, refoutp, PBHOpenRF); }
static int open_rsrc(const char *path, int flag) { return open_helper(path, ".rsrc/", flag); }
static int open_finf(const char *path, int flag) { return open_helper(path, ".finf/", flag); }
static int open_rsrc(const char *path, int flag) { return open_helper(path, ".rsrc" HOST_DIRSEP_STR, flag); }
static int open_finf(const char *path, int flag) { return open_helper(path, ".finf" HOST_DIRSEP_STR, flag); }