Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ldsseek(3)

ldclose(3)

ldopen(3)

ldshread(3)

intro(0)

ldfcn(0)



  ldsseek(3)                          CLIX                          ldsseek(3)



  NAME

    ldsseek, ldnsseek - Seeks to locate an indexed/named section of a common
    object file

  LIBRARY

    COFF Object File Manipulation Library (libld.a)

  SYNOPSIS

    #include <stdio.h>

    #include <filehdr.h>

    #include <ldfcn.h>

    int ldsseek(
      LDFILE *ldptr ,
      unsigned short sectindx );

    int ldnsseek(
      LDFILE *ldptr ,
      char *sectname );

  DESCRIPTION

    The ldsseek() function locates (or seeks) the section specified by
    sectindx variable of the common object file currently associated with
    ldptr.

    The ldnsseek() function locates the section specified by the sectname
    variable.

  CAUTIONS

    The program must be loaded with the object file access function library
    <libdir/libld.a>.

  RETURN VALUES

    The ldsseek() function and the ldnsseek() function both return SUCCESS or
    FAILURE.  The ldsseek() function will fail if sectindx is greater than the
    number of sections in the object file.  The ldnsseek() function will fail
    if there is no section name corresponding with the sectname variable.

    Both functions will fail if there is no section data for the specified
    section or if it cannot seek to the specified section.  Note that the
    first section has an index of 1.

  RELATED INFORMATION



  2/94 - Intergraph Corporation                                              1






  ldsseek(3)                          CLIX                          ldsseek(3)



    Functions: ldclose(3), ldopen(3), ldshread(3)

    Files:  intro(0), ldfcn(0)



















































  2                                              Intergraph Corporation - 2/94




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