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