Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ldfhread(3x) — 4D1 2.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ldclose(3X)

ldopen(3X)

ldfcn(4)



     LDFHREAD(3X)                                         LDFHREAD(3X)



     NAME
          ldfhread - read the file header of a common object file

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


          int ldfhread (ldptr, filehead)
          LDFILE *ldptr;
          FILHDR *filehead;

     DESCRIPTION
          Ldfhread reads the file header of the common object file
          currently associated with ldptr . It reads the file header
          into the area of memory beginning at filehead.

          Ldfhread returns SUCCESS or FAILURE.  If ldfhread cannot
          read the file header, it fails.

          Usually, ldfhread can be avoided by using the macro
          HEADER(ldptr) defined in <ldfcn.h> (see ldfcn(4)).  Note
          that the information in HEADER is swapped, if necessary.
          The information in any field, fieldname, of the file header
          can be accessed using HEADER(ldptr).fieldname.

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

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

     ORIGIN
          MIPS Computer Systems



















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



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