delorie.com/djgpp/doc/libc/libc_157.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

dlregsym

Syntax

 
#include <sys/dxe.h>

int dlregsym (const dxe_symbol_table *symtab);

Description

This function registers a table of symbols to be exported into the loaded modules.

You can register any number of such tables. When a module with unresolved external symbols is loaded, all these tables are searched for the respective symbol. If none is found, the last-resort handler is called. If even the last-resort handler cannot return an address, an error condition is raised.

The effect of dlregsym is cumulative. That is, you can call it multiple times to register several export symbol tables, and all of them will be taken into account when loading a new module.

Return Value

Returns number of symbol tables in use.

Portability

ANSI/ISO C No
POSIX No


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004