Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ldahread(3x) — Ultrix/UWS 4.1 RISC

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

intro(3x)

ldclose(3x)

ldopen(3x)

ar(5)

ldfcn(5)

ldahread(3x)  —  RISC

Name

ldahread − read the archive header of a member of an archive file

Syntax

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

int ldahread (ldptr, arhead)
LDFILE ∗ldptr;
ARCHDR ∗arhead;

Description

If TYPE(ldptr) is the archive file magic number, the ldahread function reads the archive header of the common object file currently associated with ldptr into the area of memory beginning at arhead.

The ldahread function returns success or failure.  If TYPE(ldptr) does not represent an archive file or if it cannot read the archive header, ldahread fails.

See Also

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

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