DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

ldtbindex(S-osr5)


ldtbindex -- compute the index of a symbol table entry of a common object file

Syntax

cc . . . -lld

#include <filehdr.h>
#include <syms.h>
#include <ldfcn.h>

long ldtbindex (ldptr) LDFILE *ldptr;

Description

The ldtbindex function returns the index of the symbol table entry at the current position of the common object file associated with ldptr.

The index returned by ldtbindex may be used in subsequent calls to ldtbread(S-osr5). However, since ldtbindex returns the index of the symbol table entry that begins at the current position of the object file, if ldtbindex is called immediately after a particular symbol table entry has been read, it returns the index of the next entry.

The ldtbindex function fails if there are no symbols in the object file, or if the object file is not positioned at the beginning of a symbol table entry.

Note that the first symbol in the symbol table has an index of zero.

See also

ldfcn(FP), ldtbread(S-osr5), ldtbseek(S-osr5)

Standards conformance

ldtbindex is not part of any currently supported standard; it is an extension of AT&T System V provided by the Santa Cruz Operation.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005