unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (SunOS-4.1.3)
Page:
Section:
Apropos / Subsearch:
optional field

LDAHREAD(3X)                                                      LDAHREAD(3X)



NAME
       ldahread - read the archive header of a member of a COFF archive file

SYNOPSIS
       #include <&lt;stdio.h>&gt;
       #include <&lt;ar.h>&gt;
       #include <&lt;filehdr.h>&gt;
       #include <&lt;ldfcn.h>&gt;

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

AVAILABILITY
       Available  only  on  Sun  386i systems running a SunOS 4.0.x release or
       earlier.  Not a SunOS 4.1 release feature.

DESCRIPTION
       If TYPE(ldptr) is the archive file magic number, ldahread reads the ar-
       chive  header of the COFF file currently associated with ldptr into the
       area of memory beginning at arhead.

       ldahread returns SUCCESS or FAILURE.  ldahread will fail if TYPE(ldptr)
       does  not  represent  an archive file, or if it cannot read the archive
       header.

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

SEE ALSO
       ldclose(3X), ldfcn(3), ldopen(3X), intro(5)



                               19 February 1988                   LDAHREAD(3X)