Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ldtbindex(3x) — 4D1 2.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ldclose(3X)

ldopen(3X)

ldtbread(3X)

ldtbseek(3X)

ldfcn(4)



     LDTBINDEX(3X)                                       LDTBINDEX(3X)



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

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

          long ldtbindex (ldptr)
          LDFILE *ldptr;

     DESCRIPTION
          Ldtbindex returns the (long) index of the symbol table entry
          at the current position of the common object file associated
          with ldptr.

          The index returned by ldtbindex can be used in later calls
          to ldtbread(3X).  Ldtbindex returns the index of the symbol
          table entry that begins at the current position of the
          object file; therefore, if ldtbindex is called immediately
          after a particular symbol table entry has been read, it
          returns the the index of the next entry.

          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, Ldtbindex fails and returns BADINDEX (-1).

          NOTE: The first symbol in the symbol table has an index of
          zero.

          The program must be loaded with the object file access
          routine library libmld.a.

     SEE ALSO
          ldclose(3X), ldopen(3X), ldtbread(3X), ldtbseek(3X),
          ldfcn(4).

     ORIGIN
          MIPS Computer Systems














     Page 1                                        (last mod. 8/20/87)



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026