コード例 #1
0
ファイル: linux.c プロジェクト: ArgenBarbie/postgresql-9.5.0
PGFunction
pg_dlsym(void *handle, char *funcname)
{
#ifndef HAVE_DLD_H
	return NULL;
#else
	return (PGFunction) dld_get_func((funcname));
#endif
}
コード例 #2
0
ファイル: dld_link.c プロジェクト: haubi/libtool
/* A function called through the vtable to get the address of
   a symbol loaded from a particular module.  */
static void *
vm_sym (lt_user_data loader_data LT__UNUSED, lt_module module LT__UNUSED,
	const char *name)
{
  void *address = dld_get_func (name);

  if (!address)
    {
      LT__SETERROR (SYMBOL_NOT_FOUND);
    }

  return address;
}
コード例 #3
0
ファイル: dynamic_load.c プロジェクト: ajinkya007/pike-1
static void *dlsym(void *module, char *function)
{
  return dld_get_func(function);
}