예제 #1
0
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;
}
예제 #2
0
P3 (PUBLIC pascal trap, OSErr, FSpOpenRF,
    FSSpecPtr, spec, SignedByte, perms, int16 *, refoutp)
{
    return open_helper (spec, perms, refoutp, PBHOpenRF);
}
예제 #3
0
static int open_rsrc(const char *path, int flag)
{
	return open_helper(path, ".rsrc/", flag);
}
예제 #4
0
static int open_finf(const char *path, int flag)
{
	return open_helper(path, ".finf/", flag);
}
예제 #5
0
static int open_rsrc(const char *path, int flag)
{
	return open_helper(path, ".rsrc" HOST_DIRSEP_STR, flag);
}
예제 #6
0
static int open_finf(const char *path, int flag)
{
	return open_helper(path, ".finf" HOST_DIRSEP_STR, flag);
}