Back to index

glibc  2.9
Classes | Functions
dlvsym.c File Reference
#include <dlfcn.h>
#include <stddef.h>
#include <ldsodefs.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


struct  dlvsym_args


static void dlvsym_doit (void *a)
void * __dlvsym (void *handle, const char *name, const char *version_str DL_CALLER_DECL)

Class Documentation

struct dlvsym_args

Definition at line 36 of file dlvsym.c.

Class Members
void * handle
const char * name
void * sym
const char * version
void * who

Function Documentation

void* __dlvsym ( void *  handle,
const char *  name,
const char *version_str  DL_CALLER_DECL 

Definition at line 58 of file dlvsym.c.

# ifdef SHARED
  if (__builtin_expect (_dlfcn_hook != NULL, 0))
    return _dlfcn_hook->dlvsym (handle, name, version_str, DL_CALLER);
# endif

  struct dlvsym_args args;
  args.handle = handle; = name;
  args.who = DL_CALLER;
  args.version = version_str;

  /* Protect against concurrent loads and unloads.  */
  __rtld_lock_lock_recursive (GL(dl_load_lock));

  void *result = (_dlerror_run (dlvsym_doit, &args) ? NULL : args.sym);

  __rtld_lock_unlock_recursive (GL(dl_load_lock));

  return result;

Here is the call graph for this function:

static void dlvsym_doit ( void *  a) [static]

Definition at line 50 of file dlvsym.c.

  struct dlvsym_args *args = (struct dlvsym_args *)a;

  args->sym = _dl_vsym (args->handle, args->name, args->version, args->who);

Here is the call graph for this function:

Here is the caller graph for this function: