Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

intro(3x)

ldclose(3x)

ldopen(3x)

ldfcn(5)

ldfhread(3x)  —  RISC

Name

ldfhread − read the file header of a common object file

Syntax

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

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

Description

The ldfhread function 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.

The ldfhread function returns success 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().)). 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 . 

See Also

intro(3x), ldclose(3x), ldopen(3x), ldfcn(5). 

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